This commit is contained in:
2026-02-06 18:30:57 -07:00
commit 8fa4b314b0
10 changed files with 488 additions and 0 deletions

17
modules/users.nix Normal file
View File

@@ -0,0 +1,17 @@
{ config, pkgs, ... }:
let
settings = import ../settings.nix;
in
{
users.users.${settings.username} = {
isNormalUser = true;
description = settings.userDescription;
extraGroups = settings.userGroups;
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMuiXQV7+vtLxoyLojnW/Pkt6ScWQs29KPZe8aJVAvvC" ];
};
users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMuiXQV7+vtLxoyLojnW/Pkt6ScWQs29KPZe8aJVAvvC" ];
security.sudo.execWheelOnly = true;
}