nixos/home/system/sops/server.nix
2024-06-19 21:17:54 +02:00

29 lines
803 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/server.yaml;
secrets = {
sshconfig = { path = "/home/hadi/.ssh/config"; };
github-key = { path = "/home/hadi/.ssh/github"; };
nextcloud-adminpass = {
path = "/etc/nextcloud/adminpassFile";
owner = "nextcloud";
};
cloudflare-apitoken = {
path = "/etc/cloudflare/apiToken";
owner = "cloudflare-dyndns";
};
tailscaled-authKey = {
path = "/etc/tailscale/authKey";
owner = "tailscaled";
};
};
};
systemd.user.services.mbsync.Unit.After = [ "sops-nix.service" ];
}