diff options
Diffstat (limited to 'nix/default.nix')
-rw-r--r-- | nix/default.nix | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/nix/default.nix b/nix/default.nix index 3cda7fe..d6e36ec 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -143,6 +143,14 @@ in options = { # + # System information + # + hostName = mkOption { + type = types.str; + description = "Hostname of the system."; + }; + + # # Primary user of the system # user = mkOption { @@ -158,14 +166,14 @@ in description = "Primary email of the user"; }; homePath = mkOption { - type = types.str; + type = types.path; description = "Home directory path of the user"; - default = "/home/${config.user}"; + default = builtins.toPath "/home/${config.user}"; }; dotfilesPath = mkOption { - type = types.str; + type = types.path; description = "Dotfiles path inside the users home dir"; - default = "${config.homePath}/.config/nix"; + default = builtins.toPath "${config.homePath}/.config/nix"; }; # |