aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2020-09-02 22:37:21 +0200
committerRobert Helgesson <robert@rycee.net>2020-09-02 22:37:21 +0200
commite6e49ad73c7d8cbd9f6622f0a3330ce7b71c8a86 (patch)
tree9a9a746b20ed62a365cbbb1072b9aa3cf5f2d51c
parent0399839271d51d215430a2a511813c7dd2570769 (diff)
home-environment: coerce `home.homeDirectory` to string
The home directory option should be a string without context to avoid the directory being copied to the Nix store. Fixes #1471
-rw-r--r--modules/home-environment.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/home-environment.nix b/modules/home-environment.nix
index 209df4ffcfe..2947433993e 100644
--- a/modules/home-environment.nix
+++ b/modules/home-environment.nix
@@ -196,6 +196,7 @@ in
"$HOME" for state version < 20.09,
undefined for state version ≥ 20.09
'';
+ apply = toString;
example = "/home/jane.doe";
description = "The user's home directory. Must be an absolute path.";
};