From 41c65ffeee4edccb2855c7736b5761a3f27583a3 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 27 Jan 2023 19:00:57 -0500 Subject: add profile for plasma + use firefox by default --- hosts/common/packages.nix | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'hosts/common/packages.nix') 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 = { -- cgit v1.2.3