summaryrefslogtreecommitdiff
path: root/hosts/cloud/span/users.nix
blob: 60e3a5a6371ff50dc59210015dd5bb96bd239aea (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ config, pkgs, ... }:


let shellAliases = {
  l = "lsd -lAh";
  la = "lsd -lAh";
  ports = "sudo lsof -i -P -n | grep LISTEN";
  gco = "git checkout";
  gcob = "git checkout -b";
};

in {
  programs.fish = {
    inherit shellAliases;
    enable = true;
  };

  users = {
    users = {
      span = {
        group = "users";
        isNormalUser = true;
        extraGroups = [
          "networkmanager"
          "systemd-journal"
          "wheel"
        ];
        createHome = true;
        home = "/home/span";
        isSystemUser = false;
        shell = pkgs.fish;
        openssh.authorizedKeys.keys =
          [ 
            "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKD2DxTdE7vekp+BTifuB9gPoIPdaFSGkgVblA5MbTh"
          ];
     };
    };
  };
}