Skip to content

⚙ darkone.system.sops

DNF sops, passwords and secrets management.

Wires sops-nix to usr/secrets/secrets.yaml and unlocks it with the host SSH key (ssh_host_ed25519_key) plus the dedicated infrastructure age key (/etc/sops/age/infra.key). Declares one user/<login>/password-hash secret per host user, with neededForUsers = true so the hash is available before the user accounts are created.

Regular secrets are installed by sops-install-secrets.service (sops.useSystemdActivation), before sysinit.target; a changed secret restarts its restartUnits within the same switch. Password hashes stay in the activation script, ahead of the user accounts.

Nothing else is materialised here: a secret belongs on the hosts that consume it, declared by the module that reads it.

  • enable bool Enable sops automated configuration for DNF
  • isolated bool own secrets file, no infra key, no password hashes
darkone.system.sops = {
enable = false;
isolated = false;
};

Source: modules/system/sops.nix 🡕