summaryrefslogtreecommitdiff
path: root/config/users.nix
blob: 53de154e1c5de61ec312343a45a9f1aaa5fe0ba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ config, lib, pkgs, ... }:
{
  users = {
    defaultUserShell = pkgs.fish;
    extraUsers = {
      orbekk = {
        isNormalUser = true;
        home = "/home/orbekk";
        uid = 1000;
        description = "KJ";
        extraGroups = ["wheel" "networkmanager" "dialout" "uucp" "audio" "plugdev"];
        openssh.authorizedKeys.keyFiles = [
          ../data/pincer_rsa.pub
          ../data/yubikey_rsa.pub
        ];
      };
      fcgi = { name = "fcgi"; group = "fcgi"; uid = 500; };
    };
    extraGroups = {
      fcgi = { name = "fcgi"; gid = 500; };
      plugdev = { name = "plugdev"; gid = 501; };
    };
  };
}