home-manager: Include home.activation-script for linux similar to macos

This commit is contained in:
Sebastian Sellmeier 2024-04-16 17:11:42 +02:00 committed by mergify[bot]
parent cc535d07cb
commit dacc9519f5
2 changed files with 18 additions and 13 deletions

View file

@ -804,15 +804,6 @@ The secrets are decrypted in a systemd user service called `sops-nix`, so other
}
```
As home-manager does not restart the `sops-nix` unit automatically instruct home-manager to do so:
```nix
{
home.activation.setupEtc = config.lib.dag.entryAfter [ "writeBoundary" ] ''
/run/current-system/sw/bin/systemctl start --user sops-nix
'';
}
```
## Use with GPG instead of SSH keys
If you prefer having a separate GPG key, sops-nix also comes with a helper tool, `sops-init-gpg-key`: