diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-03-31 11:19:39 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-03-31 11:19:39 -0500 |
| commit | d3fd65c0744822f999776f230ff574c78a4416c6 (patch) | |
| tree | b3cea2e6f1131946a96db8d0d1c7fc92c7d03f6d | |
| parent | d09ec6c6a3260ce3c320ce2e3f252e7fb50eef55 (diff) | |
| download | nixos-d3fd65c0744822f999776f230ff574c78a4416c6.tar.xz nixos-d3fd65c0744822f999776f230ff574c78a4416c6.zip | |
rebuild sops hack by default since the same bug in sops-nix is causing issues on other clients now as well with wg etc
| -rw-r--r-- | nixos/secrets.nix | 14 | ||||
| -rw-r--r-- | users/timmy/wifi.nix | 13 |
2 files changed, 14 insertions, 13 deletions
diff --git a/nixos/secrets.nix b/nixos/secrets.nix index 0691255..3d21e62 100644 --- a/nixos/secrets.nix +++ b/nixos/secrets.nix @@ -5,4 +5,18 @@ defaultSopsFormat = "yaml"; age.sshKeyPaths = [ "/root/.ssh/id_ed25519" ]; }; + + + # This service is a workaround to ensure that secrets are available on + # reboot when the secret keys are on a separate subvolume + systemd.services.npcnix-force-rebuild-sops-hack = { + wantedBy = [ "multi-user.target" ]; + before = [ "wpa_supplicant.service" ]; + serviceConfig = { + ExecStart = "/run/current-system/activate"; + Type = "oneshot"; + Restart = "on-failure"; # because oneshot + RestartSec = "10s"; + }; + }; } diff --git a/users/timmy/wifi.nix b/users/timmy/wifi.nix index 9afcbc7..8c762b0 100644 --- a/users/timmy/wifi.nix +++ b/users/timmy/wifi.nix @@ -21,18 +21,5 @@ in { environment.etc."wpa_supplicant.conf" = { source = config.sops.secrets.wpa_supplicant-conf.path; }; - - # This service is a workaround to ensure that secrets are available on - # reboot when the secret keys are on a separate subvolume - systemd.services.npcnix-force-rebuild-sops-hack = { - wantedBy = [ "multi-user.target" ]; - before = [ "wpa_supplicant.service" ]; - serviceConfig = { - ExecStart = "/run/current-system/activate"; - Type = "oneshot"; - Restart = "on-failure"; # because oneshot - RestartSec = "10s"; - }; - }; }; } |
