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
a5e7d1bbf6
commit
fee6830edc
4 changed files with 14 additions and 19 deletions
|
|
@ -16,22 +16,23 @@ in
|
|||
{
|
||||
|
||||
sops.secrets = {
|
||||
"passwords/user0" = {
|
||||
"password-user0" = {
|
||||
neededForUsers = true;
|
||||
sopsFile = ../../secrets/secrets.yaml;
|
||||
};
|
||||
};
|
||||
|
||||
users = {
|
||||
users = {
|
||||
"root" = {
|
||||
hashedPasswordFile = config.sops.secrets."passwords/user0".path;
|
||||
hashedPasswordFile = config.sops.secrets."password-user0".path;
|
||||
};
|
||||
${user0} = {
|
||||
description = name;
|
||||
name = user0;
|
||||
isNormalUser = true;
|
||||
shell = pkgs.nushell;
|
||||
hashedPasswordFile = config.sops.secrets."passwords/user0".path;
|
||||
hashedPasswordFile = config.sops.secrets."password-user0".path;
|
||||
extraGroups = [
|
||||
"adbusers"
|
||||
"caddy"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue