sops patches
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user