mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
feat: set up declarative password with sops
This commit is contained in:
parent
672c9bb7c0
commit
05ea17564f
3 changed files with 18 additions and 3 deletions
|
|
@ -14,12 +14,20 @@ let
|
|||
hostname = config.networking.hostName;
|
||||
in
|
||||
{
|
||||
|
||||
sops.secrets = {
|
||||
"passwords/user0" = {
|
||||
neededForUsers = true;
|
||||
};
|
||||
};
|
||||
|
||||
users = {
|
||||
users.${user0} = {
|
||||
description = name;
|
||||
name = user0;
|
||||
isNormalUser = true;
|
||||
shell = pkgs.nushell;
|
||||
hashedPasswordFile = config.sops.secrets."passwords/user0".path;
|
||||
extraGroups = [
|
||||
"adbusers"
|
||||
"caddy"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue