From 0c59117518c5f3c086d1877b609e4ae55b30aa7a Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 16 May 2023 10:06:23 +0100 Subject: [PATCH] Move powermenu definitions into rofi expression --- home/desktop/power-profiles.nix | 1 - home/desktop/powermenu.nix | 1 - home/desktop/rofi.nix | 8 ++++++-- 3 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 home/desktop/power-profiles.nix delete mode 100644 home/desktop/powermenu.nix diff --git a/home/desktop/power-profiles.nix b/home/desktop/power-profiles.nix deleted file mode 100644 index 502cb583..00000000 --- a/home/desktop/power-profiles.nix +++ /dev/null @@ -1 +0,0 @@ -with import { }; writeShellScriptBin "power-profiles" builtins.readFile ./scripts/power-profiles diff --git a/home/desktop/powermenu.nix b/home/desktop/powermenu.nix deleted file mode 100644 index a7a3b5ca..00000000 --- a/home/desktop/powermenu.nix +++ /dev/null @@ -1 +0,0 @@ -with import { }; writeShellScriptBin "powermenu" builtins.readFile ./scripts/powermenu diff --git a/home/desktop/rofi.nix b/home/desktop/rofi.nix index 466bf07b..9ba8760c 100644 --- a/home/desktop/rofi.nix +++ b/home/desktop/rofi.nix @@ -1,7 +1,11 @@ { pkgs, ... }: +let + powermenu = pkgs.writeShellScriptBin "powermenu" (builtins.readFile ./scripts/powermenu); + power-profiles = pkgs.writeShellScriptBin "power-profiles" (builtins.readFile ./scripts/power-profiles); +in { - imports = [ ./powermenu.nix ./power-profiles.nix ../gui/foot.nix ]; - home.packages = with pkgs; [ papirus-icon-theme ]; + imports = [ ../gui/foot.nix ]; + home.packages = with pkgs; [ papirus-icon-theme powermenu power-profiles ]; programs.rofi = { enable = true; location = "center";