nixos/home/system/sops/laptop.nix
2024-06-14 14:20:06 +02:00

18 lines
517 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"; };
gitlab-key = { path = "/home/hadi/.ssh/gitlab"; };
};
};
systemd.user.services.mbsync.Unit.After = [ "sops-nix.service" ];
}