aboutsummaryrefslogtreecommitdiff
path: root/roles/home
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2024-08-04 19:03:44 -0700
committerCaroline Larimore <caroline@larimo.re>2024-08-04 19:03:44 -0700
commitbf5925ebfc2901b5a157c149fa6e619c4bb2660c (patch)
treeaa72768d97d1c1fe6c22953a119d4873514f37f9 /roles/home
parente59f1ab171d99c748b8a9ebe349980e463d4dbff (diff)
home: desktop: centralize switch-theme script
Diffstat (limited to 'roles/home')
-rw-r--r--roles/home/desktop/default.nix13
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
];