From 4d4f431ff79e70ffd9450e0b7f24a9e6aa587d9e Mon Sep 17 00:00:00 2001 From: Lukas Wurzinger Date: Mon, 28 Apr 2025 18:38:31 +0200 Subject: [PATCH] nixos/nh: allow flake uris --- nixos/modules/programs/nh.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/programs/nh.nix b/nixos/modules/programs/nh.nix index 321893f4bd23..fd9229bd71d1 100644 --- a/nixos/modules/programs/nh.nix +++ b/nixos/modules/programs/nh.nix @@ -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