diff --git a/hosts/common/core/sops.nix b/hosts/common/core/sops.nix index fa71d2c..2ac8d48 100644 --- a/hosts/common/core/sops.nix +++ b/hosts/common/core/sops.nix @@ -1,10 +1,11 @@ -{ pkgs, lib, inputs, config, username, ... }: +{ pkgs, lib, inputs, config, ... }: let secretsDirectory = builtins.toString inputs.nix-secrets; secretsFile = "${secretsDirectory}/secrets.yaml"; - hasOptinPersistence = config.environment.persistence ? "/persist"; + hasOptinPersistence = environment.persistence ? "/persist"; hostname = config.networking.hostName; + in { imports = [ diff --git a/hosts/common/optional/openssh.nix b/hosts/common/optional/openssh.nix index b224739..a6a68f4 100644 --- a/hosts/common/optional/openssh.nix +++ b/hosts/common/optional/openssh.nix @@ -1,7 +1,8 @@ { lib, config, ... }: let sshPort = 22; - hasOptinPersistence = config.environment.persistence ? "/persist"; + hasOptinPersistence = environment.persistence ? "/persist"; + in { diff --git a/justfile b/justfile index 9f5ae6d..511091e 100644 --- a/justfile +++ b/justfile @@ -12,7 +12,7 @@ update-flake-secrets: # full system rebuild from flake (stages changes and automatically detects host) rebuild-system: git add *.nix - sudo nixos-rebuild switch --flake .#$(hostname) + sudo nixos-rebuild switch --option eval-cache false --flake .#$(hostname) # updates all flake inputs for system update-flake: