From bf5925ebfc2901b5a157c149fa6e619c4bb2660c Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Sun, 4 Aug 2024 19:03:44 -0700 Subject: home: desktop: centralize switch-theme script --- hosts/c-pc/home.nix | 13 ------------- hosts/phoenix/home.nix | 13 ------------- roles/home/desktop/default.nix | 13 +++++++++++++ 3 files changed, 13 insertions(+), 26 deletions(-) diff --git a/hosts/c-pc/home.nix b/hosts/c-pc/home.nix index 65d815f..3a23cbb 100644 --- a/hosts/c-pc/home.nix +++ b/hosts/c-pc/home.nix @@ -97,19 +97,6 @@ ]; 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#default - - i3-msg restart - '') - pfetch irssi diff --git a/hosts/phoenix/home.nix b/hosts/phoenix/home.nix index da84c94..360933e 100644 --- a/hosts/phoenix/home.nix +++ b/hosts/phoenix/home.nix @@ -77,19 +77,6 @@ ]; 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 - '') - pfetch qbittorrent 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 ]; -- cgit v1.2.3