diff options
author | Freya Murphy <freya@freyacat.org> | 2025-01-24 13:06:22 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-01-24 13:06:22 -0500 |
commit | d999d4d0e68b9d7cfa0f477cdbac8fe82850ae78 (patch) | |
tree | af2100aabc890c90c52b26640b07e6d342551794 /nix/default.nix | |
parent | refactor home packages, more labels (diff) | |
download | dotfiles-nix-d999d4d0e68b9d7cfa0f477cdbac8fe82850ae78.tar.gz dotfiles-nix-d999d4d0e68b9d7cfa0f477cdbac8fe82850ae78.tar.bz2 dotfiles-nix-d999d4d0e68b9d7cfa0f477cdbac8fe82850ae78.zip |
use sops-nix for secrets
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"; }; # |