diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-08-26 11:56:56 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-08-26 11:56:56 +0200 |
commit | bc9a4f01b2a45e1292e9ae94bf48bad45ff1a84e (patch) | |
tree | 12a7ea6c1bbe7f64e94de95f8f1630a20bc1550c /hosts | |
parent | Inputs: Add nixos-hardware input (diff) | |
download | nixos-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.nix | 8 |
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 ]; }; }; |