diff options
author | lassulus <lassulus@lassul.us> | 2022-10-29 13:19:39 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-11-01 20:05:10 +0100 |
commit | 1ddeb716b6dc3f609c87f6d672ae6977fb0b74e0 (patch) | |
tree | 068830d73dc3069b30a8c2b80120bad4f48ef2c7 | |
parent | fec0b14fb5b9204bbc92eb5fa0f0f60bba2815f6 (diff) |
types: add more packages
-rw-r--r-- | types.nix | 22 |
1 files changed, 13 insertions, 9 deletions
@@ -360,12 +360,16 @@ rec { readOnly = true; # type = types.functionTo (types.listOf types.package); default = pkgs: - # TODO add many more - if (config.format == "xfs") then [ pkgs.xfsprogs ] - else if (config.format == "btrfs") then [ pkgs.btrfs-progs ] - else if (config.format == "vfat") then [ pkgs.dosfstools ] - else if (config.format == "ext2") then [ pkgs.e2fsprogs ] - else []; + [ pkgs.util-linux ] ++ ( + # TODO add many more + if (config.format == "xfs") then [ pkgs.xfsprogs ] + else if (config.format == "btrfs") then [ pkgs.btrfs-progs ] + else if (config.format == "vfat") then [ pkgs.dosfstools ] + else if (config.format == "ext2") then [ pkgs.e2fsprogs ] + else if (config.format == "ext3") then [ pkgs.e2fsprogs ] + else if (config.format == "ext4") then [ pkgs.e2fsprogs ] + else [] + ); }; }; }); @@ -425,7 +429,7 @@ rec { readOnly = true; type = types.functionTo (types.listOf types.package); default = pkgs: - [ pkgs.parted ] ++ flatten (map (partition: partition._pkgs pkgs) config.partitions); + [ pkgs.parted pkgs.systemdMinimal ] ++ flatten (map (partition: partition._pkgs pkgs) config.partitions); }; }; }); @@ -840,7 +844,7 @@ rec { internal = true; readOnly = true; type = types.functionTo (types.listOf types.package); - default = pkgs: flatten (map (dataset: dataset._pkgs pkgs) (attrValues config.datasets)); + default = pkgs: [ pkgs.util-linux ] ++ flatten (map (dataset: dataset._pkgs pkgs) (attrValues config.datasets)); }; }; }); @@ -935,7 +939,7 @@ rec { internal = true; readOnly = true; type = types.functionTo (types.listOf types.package); - default = pkgs: lib.optionals (!isNull config.content) (config.content._pkgs pkgs); + default = pkgs: [ pkgs.util-linux ] ++ lib.optionals (!isNull config.content) (config.content._pkgs pkgs); }; }; }); |