services/gtk: use singleton to remove unnecessary list

This commit is contained in:
Anthony Rodriguez 2025-02-09 18:53:12 +01:00
parent 22a9c7e80b
commit 6f4e01d8fa
Signed by: nezia
SSH key fingerprint: SHA256:Ihfpl0rUpqDevYqnzSR34OYfVLbDNkBiUjs3CpX4ykA

View file

@ -6,6 +6,7 @@
lib', lib',
... ...
}: let }: let
inherit (lib.lists) singleton;
inherit (lib'.generators.gtk) finalGtk2Text toGtk3Ini; inherit (lib'.generators.gtk) finalGtk2Text toGtk3Ini;
inherit (config.local.systemVars) username; inherit (config.local.systemVars) username;
@ -46,8 +47,7 @@ in {
}; };
}; };
programs.dconf.profiles.user.databases = [ programs.dconf.profiles.user.databases = singleton {
{
lockAll = false; lockAll = false;
settings = { settings = {
"org/gnome/desktop/interface" = { "org/gnome/desktop/interface" = {
@ -55,7 +55,6 @@ in {
gtk-theme = styleCfg.gtk.theme.name; gtk-theme = styleCfg.gtk.theme.name;
}; };
}; };
} };
];
}; };
} }