mirror of
https://github.com/nix-community/disko.git
synced 2024-11-09 00:04:18 +03:00
Add coreutils to list of dependencies
This allows for the disko scripts to be ran in more foreign environments where we can't assume the basic utilities coreutils provides are available or aren't 1-for-1 compatible (e.g. busybox utilities).
This commit is contained in:
parent
27c40e5381
commit
e9dd5abae3
@ -385,8 +385,9 @@ let
|
|||||||
internal = true;
|
internal = true;
|
||||||
description = ''
|
description = ''
|
||||||
packages required by the disko configuration
|
packages required by the disko configuration
|
||||||
|
coreutils is always included
|
||||||
'';
|
'';
|
||||||
default = pkgs: unique (flatten (map (dev: dev._pkgs pkgs) (flatten (map attrValues (attrValues devices)))));
|
default = pkgs: unique ((flatten (map (dev: dev._pkgs pkgs) (flatten (map attrValues (attrValues devices))))) ++ [ pkgs.coreutils-full ]);
|
||||||
};
|
};
|
||||||
_scripts = lib.mkOption {
|
_scripts = lib.mkOption {
|
||||||
internal = true;
|
internal = true;
|
||||||
@ -405,6 +406,7 @@ let
|
|||||||
jq
|
jq
|
||||||
gnused
|
gnused
|
||||||
gawk
|
gawk
|
||||||
|
coreutils-full
|
||||||
])}:$PATH
|
])}:$PATH
|
||||||
${cfg.config._destroy}
|
${cfg.config._destroy}
|
||||||
'';
|
'';
|
||||||
|
@ -219,7 +219,7 @@ in
|
|||||||
readOnly = true;
|
readOnly = true;
|
||||||
type = lib.types.functionTo (lib.types.listOf lib.types.package);
|
type = lib.types.functionTo (lib.types.listOf lib.types.package);
|
||||||
default = pkgs:
|
default = pkgs:
|
||||||
[ pkgs.btrfs-progs pkgs.coreutils pkgs.gnugrep ];
|
[ pkgs.btrfs-progs pkgs.gnugrep ];
|
||||||
description = "Packages";
|
description = "Packages";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user