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. # Auto-load config on start.
environment.systemPackages = with pkgs; [ dconf ];
systemd.user.services.dconfload = { systemd.user.services.dconfload = {
description = "Load Gnome dconf settings on startup."; description = "Load Gnome dconf settings on startup.";
wantedBy = [ "graphical-session-pre.target" ]; wantedBy = [ "graphical-session-pre.target" ];
@ -60,7 +62,7 @@ in {
after = [ "dotfiles.service" ]; after = [ "dotfiles.service" ];
serviceConfig.Type = "oneshot"; serviceConfig.Type = "oneshot";
script = '' 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.dconf}/bin/dconf load / < ${dconfConfig}
${pkgs.git}/bin/git checkout ${dconfConfig} ${pkgs.git}/bin/git checkout ${dconfConfig}
''; '';

View file

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