mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-06-20 11:48:21 +02:00
Add new autorun nix file that has scripts that run on rebuild
This commit is contained in:
parent
1bef8f5608
commit
a86e0ea0ea
@ -11,6 +11,6 @@ pkgs.writeShellScriptBin "theme-selector" ''
|
|||||||
themechange "$chosen"
|
themechange "$chosen"
|
||||||
else
|
else
|
||||||
${pkgs.libnotify}/bin/notify-send "$chosen is building please wait" &
|
${pkgs.libnotify}/bin/notify-send "$chosen is building please wait" &
|
||||||
themechange "$chosen"
|
kitty -e themechange "$chosen"
|
||||||
fi
|
fi
|
||||||
''
|
''
|
||||||
|
@ -6,6 +6,6 @@ pkgs.writeShellScriptBin "themechange" ''
|
|||||||
else
|
else
|
||||||
replacement="$1"
|
replacement="$1"
|
||||||
sed -i "/^\s*theme[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$replacement\"/" ${flakeDir}/flake.nix
|
sed -i "/^\s*theme[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$replacement\"/" ${flakeDir}/flake.nix
|
||||||
kitty -e sudo nixos-rebuild switch --flake ${flakeDir} && swaync-client -R && swaync-client -rs
|
sudo nixos-rebuild switch --flake ${flakeDir}
|
||||||
fi
|
fi
|
||||||
''
|
''
|
||||||
|
10
config/system/autorun.nix
Normal file
10
config/system/autorun.nix
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
system.activationScripts = {
|
||||||
|
swayncreloader.text = ''
|
||||||
|
swaync-client -R
|
||||||
|
swaync-client -rs
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
@ -10,6 +10,7 @@
|
|||||||
./config/system/intel-opengl.nix
|
./config/system/intel-opengl.nix
|
||||||
./config/system/amd-opengl.nix
|
./config/system/amd-opengl.nix
|
||||||
./config/system/programs.nix
|
./config/system/programs.nix
|
||||||
|
./config/system/autorun.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
gitEmail = "tylerzanekelley@gmail.com";
|
gitEmail = "tylerzanekelley@gmail.com";
|
||||||
theLocale = "en_US.UTF-8";
|
theLocale = "en_US.UTF-8";
|
||||||
theTimezone = "America/Chicago";
|
theTimezone = "America/Chicago";
|
||||||
theme = "onedark";
|
theme = "gigavolt";
|
||||||
browser = "firefox";
|
browser = "firefox";
|
||||||
wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git";
|
wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git";
|
||||||
wallpaperDir = "/home/${username}/Pictures/Wallpapers";
|
wallpaperDir = "/home/${username}/Pictures/Wallpapers";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user