pinwheel: Extract age as module

This commit is contained in:
Alexander Heldt
2023-08-19 10:51:41 +02:00
parent 5c6c613030
commit 99c268c651
2 changed files with 10 additions and 5 deletions

View File

@@ -8,6 +8,7 @@
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
./modules/age
]; ];
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
@@ -206,11 +207,6 @@
''; '';
age = { age = {
identityPaths = [
"/etc/ssh/pinwheel"
"/home/alex/.ssh/alex.pinwheel"
];
secrets = { secrets = {
"syncthing-cert".file = ../../secrets/pinwheel/syncthing-cert.age; "syncthing-cert".file = ../../secrets/pinwheel/syncthing-cert.age;
"syncthing-key".file = ../../secrets/pinwheel/syncthing-key.age; "syncthing-key".file = ../../secrets/pinwheel/syncthing-key.age;

View File

@@ -0,0 +1,9 @@
{ pkgs, ... }:
{
age = {
identityPaths = [
"/etc/ssh/pinwheel"
"/home/alex/.ssh/alex.pinwheel"
];
};
}