Loading nixos/modules/tasks/filesystems/zfs.nix +3 −1 Original line number Diff line number Diff line Loading @@ -233,7 +233,7 @@ let tries=3 success=false while [[ $success != true ]] && [[ $tries -gt 0 ]]; do ${systemd}/bin/systemd-ask-password --timeout=${toString cfgZfs.passwordTimeout} "Enter key for $ds:" | ${cfgZfs.package}/sbin/zfs load-key "$ds" \ ${systemd}/bin/systemd-ask-password ${lib.optionalString cfgZfs.useKeyringForCredentials ("--keyname=zfs-$ds")} --timeout=${toString cfgZfs.passwordTimeout} "Enter key for $ds:" | ${cfgZfs.package}/sbin/zfs load-key "$ds" \ && success=true \ || tries=$((tries - 1)) done Loading Loading @@ -403,6 +403,8 @@ in ''; }; useKeyringForCredentials = lib.mkEnableOption "Uses the kernel keyring for encryption credentials with keyname=zfs-<poolname>"; passwordTimeout = lib.mkOption { type = lib.types.int; default = 0; Loading Loading
nixos/modules/tasks/filesystems/zfs.nix +3 −1 Original line number Diff line number Diff line Loading @@ -233,7 +233,7 @@ let tries=3 success=false while [[ $success != true ]] && [[ $tries -gt 0 ]]; do ${systemd}/bin/systemd-ask-password --timeout=${toString cfgZfs.passwordTimeout} "Enter key for $ds:" | ${cfgZfs.package}/sbin/zfs load-key "$ds" \ ${systemd}/bin/systemd-ask-password ${lib.optionalString cfgZfs.useKeyringForCredentials ("--keyname=zfs-$ds")} --timeout=${toString cfgZfs.passwordTimeout} "Enter key for $ds:" | ${cfgZfs.package}/sbin/zfs load-key "$ds" \ && success=true \ || tries=$((tries - 1)) done Loading Loading @@ -403,6 +403,8 @@ in ''; }; useKeyringForCredentials = lib.mkEnableOption "Uses the kernel keyring for encryption credentials with keyname=zfs-<poolname>"; passwordTimeout = lib.mkOption { type = lib.types.int; default = 0; Loading