about summary refs log tree commit diff
path: root/hosts/common/system/users.nix
blob: ae7c8dc196dda28d7943f21ee729a5cea8f53056 (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
{ config, lib, pkgs, ... }:

{
  users.mutableUsers = false;

  users.groups.fcuny = { gid = 1000; };
  users.users.fcuny = {
    isNormalUser = true;
    uid = 1000;
    group = "fcuny";
    home = "/home/fcuny";
    shell = pkgs.zsh;
    extraGroups = [ "users" "wheel" ];
    hashedPassword = "$6$i.z1brxtb44JAEco$fDD2Izl.zRR9vBCB2VBKPScChGw38EEl7QEiBTJ/EwgP3oSL0X3ZHq0PJ.RtqzBsWTPUjl4F3MKOBMhnaAPr6.";
    openssh.authorizedKeys.keys = [
      "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDx9jgRRLRcW348eTqwlYqLjQAju8Z9nn+rRh+7oef1sAw5GzpNw/AC8bs3m3y8PTBZmFh2mVAgOF2Zs6nhghHJDIM4HKV+K5TadvPesss1Xqa4sak0TuHYasQsOqaVm1EO7Nn3YbOMUTP1C223y+QHi0cpLBYoXwO6KJy+wEethmI/LoMBObvturZGghaf4HPRV0XiCXR7fktFgHfXg7sEGR4MLXHX/nOXY2d9TmB+qdGr8o6Des0LmfQ+8tmx5/TzcUsdCZZj+8SscEc8JSZ6FlaJB0AsQk4rTXFPgTxTaR+MIgFx9tUCo7qtg0N5v8NKx7R8s8XosPt499QuspiXg7rYiel7FafYvnZOKlFP9C3cG6/BM46k4xBQoSFJ4xPjOSC8fL21DJitzG/SbKNDIocbeGzn06rgsOKBb8XW3oCQ5aQaizX2c2kla9poMzvWf7q3QYa0ZeFmsnc77hmlJgSWMxlyfmxEXNJiiRTofwABy7W3nLIdMeYuwZh58Nc= fcuny@aptos"
      "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCSZeN5uc8hLtz9P4LjClMUC3CZhfspt8Yraho0geZDh9ofpeef5PTgpn0xMlxu69RNjr51pdhISnR4Au4TFmGXhs2BBhhDa2igsKZgbrMvx+SRHFV+JqZXBSs/z3kNamnbAgjpQ4fLJ+rwnw4WcPovgNRHXbbj99tfF8UgBhRJ6Exi0xAA66dctpxGkg8ypY2hYVsC39W3QKgPHDPUV1A4XFlaI8SoTScmf7awjGG1mwl6sgO1preITl28I7DpKtYHhZWkUZSSgsLmdF5Yw9ChuGfZcG57KgTbr0DmKTZqzr2hVpFdKGNRn8yhIkTC2yygYjMHKoVsCbpqcFZ89p/TqXQCSi7jyJvNnFq7zTLiJxXbJW4ti+FkY8KrtitD4hWDX1NW6uCEMMAAVYg4/XY4knecEyystj+bMuUYlJNGk+tcYZbF6rD7yorhHUkUZHhmsYWM6e914JjxNs9tMvqwvSJG7rE2xfvMNLBKKmvLohPttFq+a/+0PPf5vaAvdkk= fcuny@carmel"
    ];
  };

  users.users.root = {
    hashedPassword = null;
    openssh.authorizedKeys.keys = config.users.users.fcuny.openssh.authorizedKeys.keys;
  };
}