mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-01-06 21:47:25 +08:00
home-manager: Include home.activation-script for linux similar to macos
This commit is contained in:
parent
cc535d07cb
commit
dacc9519f5
2 changed files with 18 additions and 13 deletions
|
|
@ -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`:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue