nixos/home/system/sops/server.nix
2024-06-18 09:54:18 +02:00

22 lines
604 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"; };
nextcloud-adminpass = {
path = "/etc/nextcloud/adminpassFile";
owner = "nextcloud";
group = "nextcloud";
};
};
};
systemd.user.services.mbsync.Unit.After = [ "sops-nix.service" ];
}