pinwheel: Extract age as module
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
age = {
|
||||||
|
identityPaths = [
|
||||||
|
"/etc/ssh/pinwheel"
|
||||||
|
"/home/alex/.ssh/alex.pinwheel"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user