diff options
Diffstat (limited to 'modules/nixos/users/system.nix')
| -rw-r--r-- | modules/nixos/users/system.nix | 17 |
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; + }; + }; +} |
