From 6818a9cea2df86c6c7938a75316d49840ee9e34f Mon Sep 17 00:00:00 2001 From: Fabian Hauser Date: Tue, 25 Mar 2025 16:26:59 +0200 Subject: [PATCH] Move sops default file configuration to private submodule --- flake.lock | 8 ++++---- nixos-modules/system/default.nix | 7 ------- private | 2 +- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/flake.lock b/flake.lock index 042a4e0..d817032 100644 --- a/flake.lock +++ b/flake.lock @@ -170,11 +170,11 @@ ] }, "locked": { - "lastModified": 1742912471, - "narHash": "sha256-9d/7MRpDJMEguLyOnm6iuMObDc+uq09KdHJO3z8573U=", + "lastModified": 1742912717, + "narHash": "sha256-jKDVM4hLzNwYpg1/at53B2LZIEEvey1UUIi5cR8wNVQ=", "ref": "refs/heads/main", - "rev": "95d25445a04f04e74266fb17412b78fc983023bd", - "revCount": 14, + "rev": "80b04cd406adc46357888614ecc3f467b85ab8fa", + "revCount": 15, "type": "git", "url": "file:./private" }, diff --git a/nixos-modules/system/default.nix b/nixos-modules/system/default.nix index a0a0cff..8c04f1b 100644 --- a/nixos-modules/system/default.nix +++ b/nixos-modules/system/default.nix @@ -2,7 +2,6 @@ config, lib, pkgs, - inputs, ... }: { @@ -112,12 +111,6 @@ defaultEditor = true; }; - sops.defaultSopsFile = - let - defaultSopsPath = "${inputs.private}/nixos-configurations/${config.networking.hostName}/secrets.sops.yaml"; - in - lib.mkIf (builtins.pathExists defaultSopsPath) defaultSopsPath; - services.fstrim.enable = true; qois.outgoing-server-mail.enable = true; diff --git a/private b/private index 95d2544..80b04cd 160000 --- a/private +++ b/private @@ -1 +1 @@ -Subproject commit 95d25445a04f04e74266fb17412b78fc983023bd +Subproject commit 80b04cd406adc46357888614ecc3f467b85ab8fa