mirror of
https://github.com/nix-community/disko
synced 2024-11-13 23:57:12 +00:00
disko: add scripts with pkgs
This commit is contained in:
parent
4184cbcd03
commit
324a8d5347
1 changed files with 8 additions and 0 deletions
|
@ -15,7 +15,15 @@ let
|
||||||
in {
|
in {
|
||||||
types = types;
|
types = types;
|
||||||
create = cfg: types.diskoLib.create (eval cfg).config.devices;
|
create = cfg: types.diskoLib.create (eval cfg).config.devices;
|
||||||
|
createScript = pkgs: cfg: pkgs.writeScript "disko-create" ''
|
||||||
|
export PATH=${lib.makeBinPath (types.diskoLib.packages (eval cfg).config.devices pkgs)}
|
||||||
|
${types.diskoLib.create (eval cfg).config.devices}
|
||||||
|
'';
|
||||||
mount = cfg: types.diskoLib.mount (eval cfg).config.devices;
|
mount = cfg: types.diskoLib.mount (eval cfg).config.devices;
|
||||||
|
mountScript = pkgs: cfg: pkgs.writeScript "disko-mount" ''
|
||||||
|
export PATH=${lib.makeBinPath (types.diskoLib.packages (eval cfg).config.devices pkgs)}
|
||||||
|
${types.diskoLib.mount (eval cfg).config.devices}
|
||||||
|
'';
|
||||||
config = cfg: { imports = types.diskoLib.config (eval cfg).config.devices; };
|
config = cfg: { imports = types.diskoLib.config (eval cfg).config.devices; };
|
||||||
packages = cfg: types.diskoLib.packages (eval cfg).config.devices;
|
packages = cfg: types.diskoLib.packages (eval cfg).config.devices;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue