1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

nh: allow absolute flake paths

This commit is contained in:
zaer1n 2025-08-19 03:31:51 +03:00 committed by Austin Horstman
parent e293a1a12f
commit c613ac14f5

View file

@ -30,7 +30,7 @@ in
};
osFlake = lib.mkOption {
type = lib.types.nullOr lib.types.str;
type = with lib.types; nullOr (either singleLineStr path);
default = null;
description = ''
The string that will be used for the {env}`NH_OS_FLAKE` environment variable.
@ -42,7 +42,7 @@ in
};
homeFlake = lib.mkOption {
type = lib.types.nullOr lib.types.str;
type = with lib.types; nullOr (either singleLineStr path);
default = null;
description = ''
The string that will be used for the {env}`NH_HOME_FLAKE` environment variable.
@ -54,7 +54,7 @@ in
};
darwinFlake = lib.mkOption {
type = lib.types.nullOr lib.types.str;
type = with lib.types; nullOr (either singleLineStr path);
default = null;
description = ''
The string that will be used for the {env}`NH_DARWIN_FLAKE` environment variable.