Symlink home folder confs, incl. dark mode
This commit is contained in:
parent
4841795edb
commit
26b6e53956
1 changed files with 51 additions and 5 deletions
56
desktop.nix
56
desktop.nix
|
@ -109,9 +109,55 @@ in
|
||||||
platformTheme = "gnome";
|
platformTheme = "gnome";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.etc = {
|
system.userActivationScripts.mkDesktopSettingsSymlinks.text =
|
||||||
"gtk-2.0/gtkrc".source = ./program-config-files/gtkrc-2.0;
|
let
|
||||||
"gtk-3.0/settings.ini".source = ./program-config-files/gtk-3-4-settings.ini;
|
home = "/home/vili/";
|
||||||
"gtk-4.0/settings.ini".source = ./program-config-files/gtk-3-4-settings.ini;
|
paths = [
|
||||||
};
|
rec {
|
||||||
|
dir = "${home}.config/pcmanfm/default/";
|
||||||
|
file = "pcmanfm.conf";
|
||||||
|
full = "${dir}${file}";
|
||||||
|
source = "${./program-config-files/pcmanfm.conf}";
|
||||||
|
}
|
||||||
|
rec {
|
||||||
|
dir = "${home}.config/libfm/";
|
||||||
|
file = "libfm.conf";
|
||||||
|
full = "${dir}${file}";
|
||||||
|
source = "${./program-config-files/libfm.conf}";
|
||||||
|
}
|
||||||
|
rec {
|
||||||
|
dir = "${home}.config/gtk-3.0/";
|
||||||
|
file = "bookmarks";
|
||||||
|
full = "${dir}${file}";
|
||||||
|
source = "${./program-config-files/gtk-bookmarks}";
|
||||||
|
}
|
||||||
|
rec {
|
||||||
|
dir = "${home}";
|
||||||
|
file = ".gtkrc-2.0";
|
||||||
|
full = "${dir}${file}";
|
||||||
|
source = "${./program-config-files/gtkrc-2.0}";
|
||||||
|
}
|
||||||
|
rec {
|
||||||
|
dir = "${home}.config/gtk-3.0/";
|
||||||
|
file = "settings.ini";
|
||||||
|
full = "${dir}${file}";
|
||||||
|
source = "${./program-config-files/gtk-3-4-settings.ini}";
|
||||||
|
}
|
||||||
|
rec {
|
||||||
|
dir = "${home}.config/gtk-4.0/";
|
||||||
|
file = "settings.ini";
|
||||||
|
full = "${dir}${file}";
|
||||||
|
source = "${./program-config-files/gtk-3-4-settings.ini}";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
in
|
||||||
|
toString (
|
||||||
|
map (path: ''
|
||||||
|
mkdir -p ${path.dir}
|
||||||
|
if test -e ${path.full} -a ! -L ${path.full}; then
|
||||||
|
mv -f ${path.full} ${path.full}.old
|
||||||
|
fi
|
||||||
|
ln -sf ${path.source} ${path.full}
|
||||||
|
'') paths
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue