summary refs log tree commit diff
path: root/modules/user.nix
blob: 4ea0be245aef31b37e4b2d13c893d14ce7a98557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, pkgs, keys, ... }:

{
  age.secrets.password = {
    file = ../secrets/password.age;
  };

  users.mutableUsers = false;
  users.users.mel = {
    isNormalUser = true;
    description = "Mel";
    shell = pkgs.fish;
    extraGroups = [ "networkmanager" "wheel" "docker" ];

    hashedPasswordFile = config.age.secrets.password.path;
    openssh.authorizedKeys.keys = keys.allUsers;

    packages = (with pkgs; []);
  };
}