mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
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:
parent
eb8691348a
commit
263e1f929e
2
modules/nixos/workflows/a-happy-gnome/config/dconf/user
Normal file
2
modules/nixos/workflows/a-happy-gnome/config/dconf/user
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
user-db:user
|
||||||
|
system-db:a-happy-gnome-conf
|
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user