diff options
author | lassulus <lassulus@lassul.us> | 2022-10-27 00:02:37 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-10-29 13:23:31 +0200 |
commit | 324a8d5347a18e0c74625903c3bb13144370fbf2 (patch) | |
tree | 88b78c988929b702515e34a4fcfb773df3dd12c8 | |
parent | 4184cbcd037b79ed627aca20798810518cb328ac (diff) |
disko: add scripts with pkgs
-rw-r--r-- | default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/default.nix b/default.nix index 4a81f03..fdbe43d 100644 --- a/default.nix +++ b/default.nix @@ -15,7 +15,15 @@ let in { types = types; 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; + 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; }; packages = cfg: types.diskoLib.packages (eval cfg).config.devices; } |