This commit is contained in:
Hadi
2024-06-19 21:41:04 +02:00
parent 115c6345c3
commit b5fe18ab2f
5 changed files with 128 additions and 28 deletions

View File

@@ -1,31 +1,31 @@
{ pkgs, inputs, ... }: {
imports = [ inputs.sops-nix.homeManagerModules.sops ];
{ pkgs, ... }: {
# 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";
# group = "nextcloud";
# };
# cloudflare-apitoken = {
# path = "/etc/cloudflare/apiToken";
# owner = "cloudflare-dyndns";
# group = "cloudflare-dyndns";
# };
# tailscaled-authKey = {
# path = "/etc/tailscale/authKey";
# owner = "tailscaled";
# group = "tailscaled";
# };
};
};
# 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";
# group = "nextcloud";
# };
# cloudflare-apitoken = {
# path = "/etc/cloudflare/apiToken";
# owner = "cloudflare-dyndns";
# group = "cloudflare-dyndns";
# };
# tailscaled-authKey = {
# path = "/etc/tailscale/authKey";
# owner = "tailscaled";
# group = "tailscaled";
# };
# };
# };
systemd.user.services.mbsync.Unit.After = [ "sops-nix.service" ];
# systemd.user.services.mbsync.Unit.After = [ "sops-nix.service" ];
}