about summary refs log tree commit diff
path: root/machines/profpatsch/lib.nix
blob: 3cab1ff0ba647c5b458a3aaac184108eea1f2f04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, pkgs }:
rec {
  fish = pkgs.fish;

  authKeys = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJhthfk38lzDvoI7lPqRneI0yBpZEhLDGRBpcXzpPSu+V0YlgrDix5fHhBl+EKfw4aeQNvQNuAky3pDtX+BDK1b7idbz9ZMCExy2a1kBKDVJz/onLSQxiiZMuHlAljVj9iU4uoTOxX3vB85Ok9aZtMP1rByRIWR9e81/km4HdfZTCjFVRLWfvo0s29H7l0fnbG9bb2E6kydlvjnXJnZFXX+KUM16X11lK53ilPdPJdm87VtxeSKZ7GOiBz6q7FHzEd2Zc3CnzgupQiXGSblXrlN22IY3IWfm5S/8RTeQbMLVoH0TncgCeenXH7FU/sXD79ypqQV/WaVVDYMOirsnh/ philip@nyx"];

  philip = rec {
    name = "philip";
    extraGroups = [
      "wheel"
      "networkmanager"
      "docker"
      "vboxusers"
      "libvirtd"
      "scanner"
      "jackaudio"
    ];
    uid = 1000;
    createHome = true;
    home = "/home/philip";
    passwordFile = "${home}/.config/passwd";
    shell = "${lib.getBin fish}/bin/fish";
    openssh.authorizedKeys.keys = authKeys;
    isNormalUser = true;
  };
}