Up
This commit is contained in:
15
home/sops/default.nix
Normal file
15
home/sops/default.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ sops-nix, config, ... }: {
|
||||
imports = [ sops-nix.homeManagerModules.sops ];
|
||||
|
||||
sops = {
|
||||
age.keyFile = "/home/hadi/.config/sops/age/keys.txt";
|
||||
defaultSopsFile = ../../secrets/secrets.yaml;
|
||||
secrets = { sshconfig = { path = "/home/hadi/.ssh/config"; }; };
|
||||
};
|
||||
|
||||
systemd.user.services.mbsync.Unit.After = [ "sops-nix.service" ];
|
||||
|
||||
home.activation.setupEtc = config.lib.dag.entryAfter [ "writeBoundary" ] ''
|
||||
/run/current-system/sw/bin/systemctl start --user sops-nix
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user