sops patches

This commit is contained in:
Danilo Reyes
2026-02-01 20:48:17 -06:00
parent da4ae90c11
commit 657986cf15
4 changed files with 11 additions and 3 deletions

View File

@@ -13,7 +13,7 @@
../modules/modules.nix
];
system.stateVersion = "23.05";
sops = {
sops = lib.mkIf config.my.secureHost {
defaultSopsFormat = "yaml";
defaultSopsFile = ../secrets/secrets.yaml;
age = {

View File

@@ -48,7 +48,10 @@ in
users.users.bearded_dragonn = {
isNormalUser = true;
createHome = true;
hashedPasswordFile = config.sops.secrets.derek-password.path;
hashedPasswordFile = lib.mkIf config.my.secureHost config.sops.secrets.derek-password.path;
hashedPassword =
lib.mkIf (!config.my.secureHost)
"$6$s4kbia4u7xVwCmyo$LCN7.Ki2n3xQOqPKnTwa5idwOWYeMNTieQYbLkiiKcMFkFmK76BjtNofJk3U7yRmLGnW3oFT433.nTRq1aoN.1";
packages = builtins.attrValues {
inherit (pkgs)
bottles