From 99c268c651ffa9d9eef4d89c79f84934d538bc6f Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Sat, 19 Aug 2023 10:51:41 +0200 Subject: [PATCH] pinwheel: Extract `age` as module --- hosts/pinwheel/configuration.nix | 6 +----- hosts/pinwheel/modules/age/default.nix | 9 +++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) 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" + ]; + }; +}