refactor2
This commit is contained in:
parent
701c9d71f0
commit
7fa104b722
30 changed files with 240 additions and 111 deletions
30
system/core/users.nix
Normal file
30
system/core/users.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ config, ...}: let
|
||||
host = config.networking.hostName;
|
||||
in {
|
||||
users.mutableUsers = false;
|
||||
users.users = {
|
||||
lilith = {
|
||||
isNormalUser = true;
|
||||
uid = 1000;
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
hashedPasswordFile = config.sops.secrets."user/password".path;
|
||||
};
|
||||
};
|
||||
|
||||
sops.secrets = {
|
||||
"user/password" = {
|
||||
sopsFile = ../hosts/${host}/secrets/default.yaml;
|
||||
neededForUsers = true;
|
||||
};
|
||||
"user/ssh/private" = {
|
||||
sopsFile = ../hosts/${host}/secrets/default.yaml;
|
||||
path = "/home/lilith/.ssh/id_ed25519";
|
||||
owner = "lilith";
|
||||
};
|
||||
"user/ssh/public" = {
|
||||
sopsFile = ../hosts/${host}/secrets/default.yaml;
|
||||
path = "/home/lilith/.ssh/id_ed25519.pub";
|
||||
owner = "lilith";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue