workflows/a-happy-gnome: move profile into dconf package

This prevents the need to use an internal attribute so it's all good.
This commit is contained in:
Gabriel Arazas 2023-09-06 05:45:04 +08:00
parent eb8691348a
commit 263e1f929e
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 3 additions and 10 deletions

View File

@ -0,0 +1,2 @@
user-db:user
system-db:a-happy-gnome-conf

View File

@ -16,6 +16,7 @@ let
dconfConfig = pkgs.runCommand "install-a-happy-gnome-dconf-keyfiles" { } '' dconfConfig = pkgs.runCommand "install-a-happy-gnome-dconf-keyfiles" { } ''
install -Dm644 ${./config/dconf}/*.conf -t $out/etc/dconf/db/${name}-conf.d install -Dm644 ${./config/dconf}/*.conf -t $out/etc/dconf/db/${name}-conf.d
install -Dm644 ${enabledExtensions} $out/etc/dconf/db/${name}-conf.d/90-enabled-extensions.conf install -Dm644 ${enabledExtensions} $out/etc/dconf/db/${name}-conf.d/90-enabled-extensions.conf
install -Dm644 ${./config/dconf/user} $out/etc/dconf/profile/user
''; '';
in in
{ {
@ -134,16 +135,6 @@ in
programs.dconf = { programs.dconf = {
enable = true; enable = true;
packages = [ dconfConfig ]; packages = [ dconfConfig ];
# The `user` profile needed to set custom system-wide settings in GNOME.
# Also, this is a private option so take precautions with this.
profiles.user = pkgs.writeTextFile {
name = "a-happy-gnome";
text = ''
user-db:user
system-db:${name}-conf
'';
};
}; };
xdg.mime = { xdg.mime = {