This commit is contained in:
Chris Kruining 2026-03-25 06:45:43 +00:00
parent 59a1fbaf0f
commit ac3dac322d
78 changed files with 893 additions and 802 deletions

View file

@ -0,0 +1,6 @@
{
imports = [
./networking
./security
];
}

View file

@ -3,6 +3,12 @@ let
cfg = config.${namespace}.system.security;
in
{
imports = [
./boot
./sops
./sudo
];
options.${namespace}.system.security = {};
config = {
@ -20,4 +26,4 @@ in
programs.gnupg.agent.enable = true;
};
}
}

View file

@ -1,4 +1,4 @@
{ pkgs, config, namespace, repoRoot, system, ... }:
{ pkgs, config, namespace, repoRoot, ... }:
let
cfg = config.${namespace}.system.security.sops;
in
@ -10,7 +10,7 @@ in
sops = {
defaultSopsFormat = "yaml";
defaultSopsFile = repoRoot + "/systems/${system}/${config.networking.hostName}/secrets.yml";
defaultSopsFile = repoRoot + "/systems/${pkgs.stdenv.hostPlatform.system}/${config.networking.hostName}/secrets.yml";
age = {
# keyFile = "~/.config/sops/age/keys.txt";