diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-05 19:31:27 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-05 19:31:27 -0700 |
commit | 4f5ccfb7924820cf0bb51a1f5f6a8697cebd58da (patch) | |
tree | 8a7ad0ec1c744733c6db40f824734851286fb15c | |
parent | move locale configuration to a module (diff) | |
download | world-4f5ccfb7924820cf0bb51a1f5f6a8697cebd58da.tar.gz |
refactor default packages to a module
-rw-r--r-- | hosts/common/system/default.nix | 13 | ||||
-rw-r--r-- | modules/system/packages/default.nix (renamed from hosts/common/system/software.nix) | 10 |
2 files changed, 8 insertions, 15 deletions
diff --git a/hosts/common/system/default.nix b/hosts/common/system/default.nix index fda467f..2b48e4e 100644 --- a/hosts/common/system/default.nix +++ b/hosts/common/system/default.nix @@ -1,15 +1,6 @@ { pkgs, ... }: { - imports = [ - ./boot.nix - ./hardware.nix - ./network.nix - ./security.nix - ./software.nix - ./users.nix - ]; - - # It's always useful to have bash around - environment.shells = [ pkgs.bashInteractive pkgs.zsh pkgs.fish ]; + imports = + [ ./boot.nix ./hardware.nix ./network.nix ./security.nix ./users.nix ]; } diff --git a/hosts/common/system/software.nix b/modules/system/packages/default.nix index e872679..49d7920 100644 --- a/hosts/common/system/software.nix +++ b/modules/system/packages/default.nix @@ -1,9 +1,12 @@ -{ pkgs, config, lib, ... }: - +# Common packages +{ config, lib, pkgs, ... }: with lib; - let linuxpkgs = config.boot.kernelPackages; in { + + # It's always useful to have bash around + environment.shells = with pkgs; [ bashInteractive ]; + environment.systemPackages = with pkgs; [ binutils cacert @@ -40,7 +43,6 @@ in { vim wget wireguard - zsh ]; programs.bcc.enable = true; |