diff options
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/common/core/default.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/hosts/common/core/default.nix b/hosts/common/core/default.nix index b6e76d5..e0a450a 100644 --- a/hosts/common/core/default.nix +++ b/hosts/common/core/default.nix @@ -9,8 +9,15 @@ documentation.dev.enable = true; documentation.man.enable = true; - #environment.systemPackages = builtins.attrValues { - # inherit (pkgs) + # generate a handy list of all currently installed packages with versions at /etc/current-system-packages + environment.etc."current-system-packages".text = + let + packages = builtins.map (p: "${p.name}") config.environment.systemPackages; + sortedUnique = builtins.sort builtins.lessThan (pkgs.lib.lists.unique packages); + formatted = builtins.concatStringsSep "\n" sortedUnique; + in + formatted; + environment.systemPackages = with pkgs; [ acl age @@ -91,9 +98,8 @@ wireguard-tools xz zip - zstd#; + zstd ]; - #}; hardware.enableRedistributableFirmware = true; |