From f4e951169a802e09c5964ebf8a329d9ceb01112c Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Thu, 19 Jun 2025 15:09:56 +0200 Subject: [PATCH] update secrets Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> Former-commit-id: 09934db50d6cae2062d79577792fe980e8e2f3ff --- hosts/server/configuration.nix | 2 +- hosts/server/secrets/default.nix | 21 ++++++--------------- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 2c83647..13d5638 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -1,4 +1,4 @@ -{ config, ... }: { +{config, ...}: { imports = [ ../../nixos/home-manager.nix ../../nixos/nix.nix diff --git a/hosts/server/secrets/default.nix b/hosts/server/secrets/default.nix index 25d9bb4..1cd6ac1 100644 --- a/hosts/server/secrets/default.nix +++ b/hosts/server/secrets/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: { +{pkgs, ...}: { sops = { age.keyFile = "/home/hadi/.config/sops/age/keys.txt"; defaultSopsFile = ./secrets.yaml; @@ -23,21 +23,12 @@ path = "/home/hadi/.ssh/key.pub"; mode = "0600"; }; - cloudflare-dns-token = { path = "/etc/cloudflare/dnskey.txt"; }; - nextcloud-pwd = { path = "/etc/nextcloud/pwd.txt"; }; - adguard-pwd = { }; - hoarder = { }; - recyclarr = { - owner = "recyclarr"; - mode = "0777"; - }; - wireguard-pia = { - # owner = "media"; - group = "media"; - mode = "0600"; - }; + cloudflare-dns-token = {path = "/etc/cloudflare/dnskey.txt";}; + nextcloud-pwd = {path = "/etc/nextcloud/pwd.txt";}; + adguard-pwd = {}; + hoarder = {}; }; }; - environment.systemPackages = with pkgs; [ sops age ]; + environment.systemPackages = with pkgs; [sops age]; }