about summary refs log tree commit diff
path: root/nix/hosts/nixos/user.nix
blob: c8f0f6a1b828618a5a28c942dd2f4e6973ab1efe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ ... }:
{
  users.users.fcuny = {
    uid = 1000;
    isNormalUser = true;
    extraGroups = [
      "git"
      "wheel"
    ];
    openssh.authorizedKeys.keys = [
      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi"
    ];
  };

  security.sudo.extraRules = [{
    groups = [ "wheel" ];
    commands = [{ command = "ALL"; options = [ "NOPASSWD" ]; }];
  }];
}