Trying To Move User Creation To A Separate File

This commit is contained in:
Annika Merris 2024-07-23 15:16:04 -04:00
parent 5c25a0ac56
commit 8994b2ca56
5 changed files with 44 additions and 3 deletions

View file

@ -3,5 +3,6 @@
imports = [
./hardware
./software
./users
];
}

View file

@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
{
sops.secrets.annika_password.neededForUsers = true;
users.users.annika = {
isNormalUser = true;
home = "/home/annika";
description = "Annika Merris";
extraGroups = [ "networkmanager", "wheel" ];
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG9NhsAOBwWBdBeenfaPoRtqQrAIgg7E5m4sKYQU9cFx annika@kim" ];
hashedPasswordFile = config.sops.secrets.annika_password;
};
}

View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./annika.nix
];
}