mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 10:04:09 -05:00
feat: enable sopsdiffing for home secrets as well
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
nixos/hosts/*/secrets/*.yaml diff=sopsdiffer
|
||||
nixos/common/secrets/*.yaml diff=sopsdiffer
|
||||
home/gabriel/**/*/*.yaml diff=sopsdiffer
|
||||
nix linguist-generated=true
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
isEd25519 = k: k.type == "ed25519";
|
||||
@@ -8,6 +9,7 @@
|
||||
keys = builtins.filter isEd25519 config.services.openssh.hostKeys;
|
||||
in {
|
||||
imports = [inputs.sops-nix.nixosModules.sops];
|
||||
environment.systemPackages = [pkgs.sops];
|
||||
|
||||
sops = {
|
||||
age.sshKeyPaths = map getKeyPath keys;
|
||||
|
||||
Reference in New Issue
Block a user