nixos server configurations
1{
2 users.users = {
3 bates64 = {
4 isNormalUser = true;
5 extraGroups = [ "wheel" ];
6 openssh.authorizedKeys.keyFiles = [ ./bates64.pub ];
7 };
8 };
9
10 security.sudo.extraRules = [
11 {
12 users = [ "bates64" ];
13 commands = [
14 {
15 command = "ALL";
16 options = [ "NOPASSWD" ];
17 }
18 ];
19 }
20 ];
21
22 nix.settings.trusted-users = [
23 "root"
24 "bates64"
25 ];
26}