summaryrefslogtreecommitdiff
path: root/hosts/common/packages.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-01-27 19:00:57 -0500
committerseth <[email protected]>2023-01-27 19:00:57 -0500
commit41c65ffeee4edccb2855c7736b5761a3f27583a3 (patch)
tree7478ae8ec5fd12dc5a30851d79dc70d73f7bdbd8 /hosts/common/packages.nix
parent59c1c77eabb8a299eacde600ff0992789f4c25bc (diff)
add profile for plasma + use firefox by default
Diffstat (limited to 'hosts/common/packages.nix')
-rw-r--r--hosts/common/packages.nix29
1 files changed, 20 insertions, 9 deletions
diff --git a/hosts/common/packages.nix b/hosts/common/packages.nix
index dbb0091..8e08740 100644
--- a/hosts/common/packages.nix
+++ b/hosts/common/packages.nix
@@ -1,12 +1,23 @@
-{pkgs, ...}: {
- environment.systemPackages = with pkgs; [
- git
- neofetch
- nixos-option
- pinentry-curses
- python310
- vim
- ];
+{
+ config,
+ pkgs,
+ ...
+}: let
+ extraPkgs =
+ if config.sys.gui.enable
+ then with pkgs; [firefox]
+ else [];
+in {
+ environment.systemPackages = with pkgs;
+ [
+ git
+ neofetch
+ nixos-option
+ pinentry-curses
+ python310
+ vim
+ ]
+ ++ extraPkgs;
programs = {
gnupg = {