mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 16:10:03 +01:00
types: add more packages
This commit is contained in:
parent
fec0b14fb5
commit
1ddeb716b6
1 changed files with 13 additions and 9 deletions
12
types.nix
12
types.nix
|
|
@ -360,12 +360,16 @@ rec {
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
# type = types.functionTo (types.listOf types.package);
|
# type = types.functionTo (types.listOf types.package);
|
||||||
default = pkgs:
|
default = pkgs:
|
||||||
|
[ pkgs.util-linux ] ++ (
|
||||||
# TODO add many more
|
# TODO add many more
|
||||||
if (config.format == "xfs") then [ pkgs.xfsprogs ]
|
if (config.format == "xfs") then [ pkgs.xfsprogs ]
|
||||||
else if (config.format == "btrfs") then [ pkgs.btrfs-progs ]
|
else if (config.format == "btrfs") then [ pkgs.btrfs-progs ]
|
||||||
else if (config.format == "vfat") then [ pkgs.dosfstools ]
|
else if (config.format == "vfat") then [ pkgs.dosfstools ]
|
||||||
else if (config.format == "ext2") then [ pkgs.e2fsprogs ]
|
else if (config.format == "ext2") then [ pkgs.e2fsprogs ]
|
||||||
else [];
|
else if (config.format == "ext3") then [ pkgs.e2fsprogs ]
|
||||||
|
else if (config.format == "ext4") then [ pkgs.e2fsprogs ]
|
||||||
|
else []
|
||||||
|
);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
@ -425,7 +429,7 @@ rec {
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
type = types.functionTo (types.listOf types.package);
|
type = types.functionTo (types.listOf types.package);
|
||||||
default = pkgs:
|
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;
|
internal = true;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
type = types.functionTo (types.listOf types.package);
|
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;
|
internal = true;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
type = types.functionTo (types.listOf types.package);
|
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);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue