nixos/nh: allow flake uris (#402572)

This commit is contained in:
Aleksana 2025-05-26 22:48:40 +08:00 committed by GitHub
commit adc94ac2b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,10 +19,10 @@ in
package = lib.mkPackageOption pkgs "nh" { };
flake = lib.mkOption {
type = lib.types.nullOr lib.types.path;
type = lib.types.nullOr lib.types.str;
default = null;
description = ''
The path that will be used for the `NH_FLAKE` environment variable.
The string that will be used for the `NH_FLAKE` environment variable.
`NH_FLAKE` is used by nh as the default flake for performing actions, such as
`nh os switch`. This behaviour can be overriden per-command with environment