DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

ref: 8c36e1a019c5bde84a09768918dd4d3ff2432db5 nix-arta/modules/users/skye.nix -rw-r--r-- 349 bytes
8c36e1a0Jonni Liljamo feat: alice initial 4 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
let
  username = "skye";
in {
  flake.modules.nixos.${username} = {config, ...}: {
    sops.secrets."${username}Pwd".neededForUsers = true;

    users.users.${username} = {
      isNormalUser = true;
      extraGroups = ["wheel"];
      home = "/home/${username}";
      hashedPasswordFile = config.sops.secrets."${username}Pwd".path;
    };
  };
}