DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

ref: c7117b1caf9dd72ff8b54b6c0e168d335475f541 nix-arta/modules/users/skye.nix -rw-r--r-- 349 bytes
c7117b1cJonni Liljamo feat: ssh-agent 5 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;
    };
  };
}