nixos/home/system/sops/server.nix
2024-06-17 23:29:47 +02:00

17 lines
460 B
Nix

{ pkgs, inputs, ... }: {
imports = [ inputs.sops-nix.homeManagerModules.sops ];
home.packages = with pkgs; [ sops age ];
sops = {
age.keyFile = "/home/hadi/.config/sops/age/keys.txt";
defaultSopsFile = ../../../secrets/laptop.yaml;
secrets = {
sshconfig = { path = "/home/hadi/.ssh/config"; };
github-key = { path = "/home/hadi/.ssh/github"; };
};
};
systemd.user.services.mbsync.Unit.After = [ "sops-nix.service" ];
}