diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-08-04 19:03:44 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-08-04 19:03:44 -0700 |
| commit | bf5925ebfc2901b5a157c149fa6e619c4bb2660c (patch) | |
| tree | aa72768d97d1c1fe6c22953a119d4873514f37f9 /roles | |
| parent | e59f1ab171d99c748b8a9ebe349980e463d4dbff (diff) | |
home: desktop: centralize switch-theme script
Diffstat (limited to 'roles')
| -rw-r--r-- | roles/home/desktop/default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/home/desktop/default.nix b/roles/home/desktop/default.nix index 39ace99..813f215 100644 --- a/roles/home/desktop/default.nix +++ b/roles/home/desktop/default.nix @@ -78,6 +78,19 @@ let cfg = config.home.roles.desktop; in { home = { packages = with pkgs; [ + (writeShellScriptBin "switch-theme" '' + #!/usr/bin/env bash + + cd /etc/nixos + + rm theme.nix + ln -s ./themes/$1.nix theme.nix + + sudo nixos-rebuild switch --flake /etc/nixos + + i3-msg restart + '') + kdePackages.breeze ]; |