summaryrefslogtreecommitdiff
path: root/modules/host-common.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/host-common.nix')
-rw-r--r--modules/host-common.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/host-common.nix b/modules/host-common.nix
new file mode 100644
index 0000000..83a51e2
--- /dev/null
+++ b/modules/host-common.nix
@@ -0,0 +1,10 @@
+{ config, lib, hostname, ... }:
+let
+ userOptions = import ../hosts/${hostname}/userOptions.nix;
+in
+{
+ _module.args.userOptions = userOptions;
+
+ home.username = userOptions.username;
+ home.homeDirectory = userOptions.userHome;
+}