summaryrefslogtreecommitdiff
path: root/hosts/common/packages.nix
diff options
context:
space:
mode:
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 = {