summaryrefslogtreecommitdiff
path: root/nix/default.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-01-24 13:06:22 -0500
committerFreya Murphy <freya@freyacat.org>2025-01-24 13:06:22 -0500
commitd999d4d0e68b9d7cfa0f477cdbac8fe82850ae78 (patch)
treeaf2100aabc890c90c52b26640b07e6d342551794 /nix/default.nix
parentrefactor home packages, more labels (diff)
downloaddotfiles-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.nix16
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";
};
#