From 1ab6099032d0ecaffcbe2a319ee57118ce619fdc Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Thu, 13 Feb 2025 20:25:01 -0500 Subject: nixos: split off system user support And don't give it a password --- modules/nixos/users/system.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 modules/nixos/users/system.nix (limited to 'modules/nixos/users/system.nix') 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; + }; + }; +} -- cgit v1.2.3