From a9fb22bf861cd03df2c893b4a1e57982f5535407 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Sun, 24 Nov 2024 16:12:04 -0800 Subject: [PATCH] firefox: move alt launch script to module --- home/modules/firefox.nix | 6 ++++++ hosts/snowhawk/home.nix | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/home/modules/firefox.nix b/home/modules/firefox.nix index 9558c1d..f29cbc5 100644 --- a/home/modules/firefox.nix +++ b/home/modules/firefox.nix @@ -41,5 +41,11 @@ in userChrome = config.programs.firefox.profiles.default.userChrome; }; }; + + home.packages = with pkgs; [ + (writeShellScriptBin "alt-firefox" '' + ${lib.getExe config.programs.firefox.package} -P "alt" + '') + ]; }; } diff --git a/hosts/snowhawk/home.nix b/hosts/snowhawk/home.nix index 01ce9ed..73d0d49 100644 --- a/hosts/snowhawk/home.nix +++ b/hosts/snowhawk/home.nix @@ -99,10 +99,6 @@ nixos-rebuild switch --log-format internal-json -v $@ |& nom --json '') - (writeShellScriptBin "alt-firefox" '' - ${lib.getExe pkgs.firefox} -P "alt" - '') - (writeShellScriptBin "suspend" '' systemctl suspend '')