firefox: move alt launch script to module

This commit is contained in:
Zynh Ludwig 2024-11-24 16:12:04 -08:00
parent 32a5792162
commit a9fb22bf86
2 changed files with 6 additions and 4 deletions

View file

@ -41,5 +41,11 @@ in
userChrome = config.programs.firefox.profiles.default.userChrome; userChrome = config.programs.firefox.profiles.default.userChrome;
}; };
}; };
home.packages = with pkgs; [
(writeShellScriptBin "alt-firefox" ''
${lib.getExe config.programs.firefox.package} -P "alt"
'')
];
}; };
} }

View file

@ -99,10 +99,6 @@
nixos-rebuild switch --log-format internal-json -v $@ |& nom --json nixos-rebuild switch --log-format internal-json -v $@ |& nom --json
'') '')
(writeShellScriptBin "alt-firefox" ''
${lib.getExe pkgs.firefox} -P "alt"
'')
(writeShellScriptBin "suspend" '' (writeShellScriptBin "suspend" ''
systemctl suspend systemctl suspend
'') '')