This commit is contained in:
Hadi
2024-03-16 22:26:30 +01:00
parent 3f2ba75a5e
commit f86a0271b6
18 changed files with 317 additions and 973 deletions

15
home/sops/default.nix Normal file
View 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
'';
}