initial migration

This commit is contained in:
Chris Kruining 2026-03-24 14:09:46 +00:00
parent 01fb98ba10
commit 59a1fbaf0f
54 changed files with 522 additions and 613 deletions

View file

@ -1,12 +1,8 @@
{ pkgs, config, namespace, inputs, system, ... }:
{ pkgs, config, namespace, repoRoot, system, ... }:
let
cfg = config.${namespace}.system.security.sops;
in
{
imports = [
inputs.sops-nix.nixosModules.sops
];
options.${namespace}.system.security.sops = {};
config = {
@ -14,7 +10,7 @@ in
sops = {
defaultSopsFormat = "yaml";
defaultSopsFile = inputs.self + "/systems/${system}/${config.networking.hostName}/secrets.yml";
defaultSopsFile = repoRoot + "/systems/${system}/${config.networking.hostName}/secrets.yml";
age = {
# keyFile = "~/.config/sops/age/keys.txt";
@ -23,4 +19,4 @@ in
};
};
};
}
}