summaryrefslogtreecommitdiff
path: root/modules/nixos/users/system.nix
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-02-13 20:25:01 -0500
committerSeth Flynn <[email protected]>2025-02-13 22:09:11 -0500
commit1ab6099032d0ecaffcbe2a319ee57118ce619fdc (patch)
tree7998fab06edddf95d98c820b9541e49c48d55275 /modules/nixos/users/system.nix
parent102c93593af02273a5d7c2c618e9dea1a3cee747 (diff)
nixos: split off system user support
And don't give it a password
Diffstat (limited to 'modules/nixos/users/system.nix')
-rw-r--r--modules/nixos/users/system.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/nixos/users/system.nix b/modules/nixos/users/system.nix
new file mode 100644
index 0000000..15c58cc
--- /dev/null
+++ b/modules/nixos/users/system.nix
@@ -0,0 +1,17 @@
+{ config, lib, ... }:
+
+let
+ cfg = config.borealis.users.system;
+in
+
+{
+ options.borealis.users.system = {
+ enable = lib.mkEnableOption "an untrusted system user";
+ };
+
+ config = lib.mkIf cfg.enable {
+ users.users.${config.networking.hostName} = {
+ isNormalUser = true;
+ };
+ };
+}