chore: refactored sops secrets

This commit is contained in:
Nick 2025-11-28 20:35:50 -06:00
parent 60c469ee7f
commit 9df4b8c8a0
13 changed files with 47 additions and 42 deletions

View file

@ -16,7 +16,7 @@ in
{
sops.secrets = {
"password-user0" = {
"passwords/user0" = {
neededForUsers = true;
sopsFile = ../../secrets/secrets.yaml;
};
@ -25,14 +25,14 @@ in
users = {
users = {
"root" = {
hashedPasswordFile = config.sops.secrets."password-user0".path;
hashedPasswordFile = config.sops.secrets."passwords/user0".path;
};
${user0} = {
description = name;
name = user0;
isNormalUser = true;
shell = pkgs.nushell;
hashedPasswordFile = config.sops.secrets."password-user0".path;
hashedPasswordFile = config.sops.secrets."passwords/user0".path;
extraGroups = [
"adbusers"
"caddy"