Tailscale with secrets

This commit is contained in:
pazpi 2024-09-11 22:50:08 +02:00
parent 8df20a270a
commit 94b9d49c66
No known key found for this signature in database
GPG key ID: 0942571C4B9966BE

View file

@ -1,10 +1,12 @@
{
config,
pkgs,
lib,
home-manager,
...
{ config
, pkgs
, lib
, home-manager
, ...
}:
let
tailscaleMagicDNS = "neon-dory.ts.net";
in
{
imports = [
./hardware-configuration.nix
@ -12,6 +14,15 @@
# home-manager.nixosModules.home-manager
];
age = {
identityPaths = [ "/home/pazpi/.ssh/id_ed25519" ];
secrets = {
tailscale-authKey.file = ../../secrets/tailscale-authKey.age;
};
};
my = {
desktop = {
audio.enable = false;
@ -22,17 +33,34 @@
hashedPassword = "$y$j9T$dA94KVg1/jYLqclQQbTDk.$cnfxBWUN8P4shr8Kkipv5bU/RCtQNoAwYFDZ0X/BYs5";
};
networking = {
enable = true;
hostname = "deadbeef";
localDNS = [ "192.168.1.2" ];
};
plymouth = {
enable = true;
theme = "colorful_loop";
};
utils = {
commons.enable = true;
i18n.enable = true;
};
};
utils = {
commons.enable = true;
};
networking = {
tailscale = {
enable = true;
magicDNSDomain = tailscaleMagicDNS;
authKeyFile = config.age.secrets.tailscale-authKey.path;
};
};
};
time.timeZone = "Europe/Rome";