Gnome : Use gnused.

This commit is contained in:
Dmitry Voronin 2024-02-20 16:59:16 +03:00
parent 984d430510
commit f41c9a3f01
2 changed files with 5 additions and 1 deletions

View file

@ -53,6 +53,8 @@ in {
};
# Auto-load config on start.
environment.systemPackages = with pkgs; [ dconf ];
systemd.user.services.dconfload = {
description = "Load Gnome dconf settings on startup.";
wantedBy = [ "graphical-session-pre.target" ];
@ -60,7 +62,7 @@ in {
after = [ "dotfiles.service" ];
serviceConfig.Type = "oneshot";
script = ''
sed -i -e "s/voronind/$(whoami)/g" ${dconfConfig}
${pkgs.gnused}/bin/sed -i -e "s/voronind/$(${pkgs.coreutils}/bin/whoami)/g" ${dconfConfig}
${pkgs.dconf}/bin/dconf load / < ${dconfConfig}
${pkgs.git}/bin/git checkout ${dconfConfig}
'';

View file

@ -6,6 +6,7 @@
appimage-run
binwalk
btop
coreutils
cryptsetup
curl
ddrescue
@ -15,6 +16,7 @@
git
gnome.gnome-tweaks
gnumake
gnused
imagemagick
jq
lm_sensors