mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-02-16 16:40:49 +01: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"
|
||||
else
|
||||
${pkgs.libnotify}/bin/notify-send "$chosen is building please wait" &
|
||||
themechange "$chosen"
|
||||
kitty -e themechange "$chosen"
|
||||
fi
|
||||
''
|
||||
|
@ -6,6 +6,6 @@ pkgs.writeShellScriptBin "themechange" ''
|
||||
else
|
||||
replacement="$1"
|
||||
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
|
||||
''
|
||||
|
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/amd-opengl.nix
|
||||
./config/system/programs.nix
|
||||
./config/system/autorun.nix
|
||||
];
|
||||
|
||||
# Enable networking
|
||||
|
@ -20,7 +20,7 @@
|
||||
gitEmail = "tylerzanekelley@gmail.com";
|
||||
theLocale = "en_US.UTF-8";
|
||||
theTimezone = "America/Chicago";
|
||||
theme = "onedark";
|
||||
theme = "gigavolt";
|
||||
browser = "firefox";
|
||||
wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git";
|
||||
wallpaperDir = "/home/${username}/Pictures/Wallpapers";
|
||||
|
Loading…
Reference in New Issue
Block a user