about summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-08-26 11:56:56 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-08-26 11:56:56 +0200
commitbc9a4f01b2a45e1292e9ae94bf48bad45ff1a84e (patch)
tree12a7ea6c1bbe7f64e94de95f8f1630a20bc1550c /hosts
parentInputs: Add nixos-hardware input (diff)
downloadnixos-config-bc9a4f01b2a45e1292e9ae94bf48bad45ff1a84e.tar.gz
nixos-config-bc9a4f01b2a45e1292e9ae94bf48bad45ff1a84e.tar.bz2
nixos-config-bc9a4f01b2a45e1292e9ae94bf48bad45ff1a84e.zip
Use rec set to set disko script name from attribute
Diffstat (limited to 'hosts')
-rw-r--r--hosts/luna/disks.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/hosts/luna/disks.nix b/hosts/luna/disks.nix
index 6bbb67c..6e9b9ad 100644
--- a/hosts/luna/disks.nix
+++ b/hosts/luna/disks.nix
@@ -158,19 +158,19 @@ in
     ];
   };
 
-  options.disko-create = with lib; mkOption {
+  options.disko-create = with lib; mkOption rec {
     type = types.package;
     default = pkgs.symlinkJoin {
       name = "disko-create";
-      paths = [ (pkgs.writeScriptBin "disko-create" (inputs.disko.lib.create partitionsConfig)) pkgs.parted ];
+      paths = [ (pkgs.writeScriptBin default.name (inputs.disko.lib.create partitionsConfig)) pkgs.parted ];
     };
   };
 
-  options.disko-mount = with lib; mkOption {
+  options.disko-mount = with lib; mkOption rec {
     type = types.package;
     default = pkgs.symlinkJoin {
       name = "disko-mount";
-      paths = [ (pkgs.writeScriptBin "disko-mount" (inputs.disko.lib.mount partitionsConfig)) pkgs.parted ];
+      paths = [ (pkgs.writeScriptBin default.name (inputs.disko.lib.mount partitionsConfig)) pkgs.parted ];
     };
   };