add age and test with tailscale
This commit is contained in:
@@ -29,6 +29,9 @@
|
|||||||
blake.enable = true;
|
blake.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# age
|
||||||
|
age.keyFile = ../../.keyring/age/keys.txt;
|
||||||
|
|
||||||
# passwordless rebuild
|
# passwordless rebuild
|
||||||
security.sudo.extraRules = [
|
security.sudo.extraRules = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
age.secrets."tailscale_authkey" = {
|
||||||
|
file = ../../secrets/tailscale_authkey.txt.age;
|
||||||
|
owner = "blake";
|
||||||
|
group = "blake";
|
||||||
|
mode = "0400";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
modules.system.tailscale.enable = lib.mkEnableOption "enables tailscale";
|
modules.system.tailscale.enable = lib.mkEnableOption "enables tailscale";
|
||||||
};
|
};
|
||||||
@@ -10,7 +18,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
useRoutingFeatures = "both";
|
useRoutingFeatures = "both";
|
||||||
authKeyFile = "/home/blake/.nix/.keyring/tailscale/authkey";
|
authKeyFile = "/run/agenix/tailscale_authkey";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user