Extract always-requested system packages to module
Alan Pearce alan@alanpearce.eu
Thu, 31 Dec 2020 21:47:47 +0100
5 files changed, 13 insertions(+), 7 deletions(-)
M system/mba.nix → system/mba.nix
@@ -3,6 +3,7 @@ { imports = [ ./settings/darwin.nix + ./settings/programs/base.nix ./settings/programs/shell.nix ];
M system/prefect.nix → system/prefect.nix
@@ -25,6 +25,7 @@ ./settings/hardware/trezor.nix ./settings/services/syncthing.nix ./settings/services/zeroconf.nix ./settings/user-interface.nix + ./settings/programs/base.nix ./settings/programs/gnupg.nix ./settings/programs/i3.nix ./settings/programs/shell.nix
M system/satoshipad.nix → system/satoshipad.nix
@@ -22,6 +22,7 @@ ./settings/hardware/network-manager.nix ./settings/hardware/keyboard.nix ./settings/hardware/trackball.nix ./settings/hardware/trezor.nix + ./settings/programs/base.nix ./settings/programs/gnupg.nix ./settings/programs/i3.nix ./settings/programs/shell.nix
M system/settings/base.nix → system/settings/base.nix
@@ -6,13 +6,6 @@ ../modules/nextdns.nix ]; boot.loader.timeout = lib.mkDefault 1; - environment.systemPackages = with pkgs; [ - nix-index - cachix - vim - zstd - ]; - programs.zsh = { histFile = "\${XDG_DATA_HOME}/zsh/history"; };
A system/settings/programs/base.nix
@@ -0,0 +1,10 @@+{ pkgs, ...}: + +{ + environment.systemPackages = with pkgs; [ + nix-index + cachix + vim + zstd + ]; +}