diff --git a/hosts/pinwheel/configuration.nix b/hosts/pinwheel/configuration.nix index 72b9c24..128bfed 100644 --- a/hosts/pinwheel/configuration.nix +++ b/hosts/pinwheel/configuration.nix @@ -8,6 +8,7 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + ./modules/age ]; nix.settings.experimental-features = [ "nix-command" "flakes" ]; @@ -206,11 +207,6 @@ ''; age = { - identityPaths = [ - "/etc/ssh/pinwheel" - "/home/alex/.ssh/alex.pinwheel" - ]; - secrets = { "syncthing-cert".file = ../../secrets/pinwheel/syncthing-cert.age; "syncthing-key".file = ../../secrets/pinwheel/syncthing-key.age; diff --git a/hosts/pinwheel/modules/age/default.nix b/hosts/pinwheel/modules/age/default.nix index e69de29..d0f5dba 100644 --- a/hosts/pinwheel/modules/age/default.nix +++ b/hosts/pinwheel/modules/age/default.nix @@ -0,0 +1,9 @@ +{ pkgs, ... }: +{ + age = { + identityPaths = [ + "/etc/ssh/pinwheel" + "/home/alex/.ssh/alex.pinwheel" + ]; + }; +}