move sops to modules

This commit is contained in:
2024-08-08 14:09:44 +05:30
parent fd92021844
commit 42a23950d6
6 changed files with 123 additions and 20 deletions

View File

@ -1,12 +1,10 @@
{
pkgs,
inputs,
username,
config,
...
}: {
imports = [
inputs.sops-nix.nixosModules.sops
./hardware-configuration.nix
../common
../../modules/nixos/headscale.nix
@ -18,13 +16,8 @@
../../modules/nixos/monitoring/promtail.nix
];
sops = {
age.keyFile = "/home/${username}/.config/sops/age/keys.txt";
secrets = {
borg_encryption_key = {
sopsFile = ./secrets.yaml;
};
};
sops.secrets.borg_encryption_key = {
sopsFile = ./secrets.yaml;
};
boot = {