mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-11 19:27:39 -05:00
Trying To Move User Creation To A Separate File
This commit is contained in:
parent
5c25a0ac56
commit
8994b2ca56
5 changed files with 44 additions and 3 deletions
|
|
@ -3,5 +3,6 @@
|
|||
imports = [
|
||||
./hardware
|
||||
./software
|
||||
./users
|
||||
];
|
||||
}
|
||||
13
modules/nixos/users/annika.nix
Normal file
13
modules/nixos/users/annika.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
6
modules/nixos/users/default.nix
Normal file
6
modules/nixos/users/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./annika.nix
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue