feat: add tailscale module
This commit is contained in:
@@ -31,19 +31,20 @@ in
|
|||||||
../../modules/firewall
|
../../modules/firewall
|
||||||
../../modules/fonts
|
../../modules/fonts
|
||||||
../../modules/gaming
|
../../modules/gaming
|
||||||
../../modules/networking
|
../../modules/hcloud
|
||||||
../../modules/keyboard
|
../../modules/keyboard
|
||||||
../../modules/localization
|
../../modules/localization
|
||||||
|
../../modules/networking
|
||||||
../../modules/nvidia
|
../../modules/nvidia
|
||||||
(import ../../modules/secrets { inherit lib inputs config; })
|
(import ../../modules/secrets { inherit lib inputs config; })
|
||||||
../../modules/ssh
|
../../modules/ssh
|
||||||
../../modules/storage
|
../../modules/storage
|
||||||
../../modules/stylix
|
../../modules/stylix
|
||||||
../../modules/syncthing
|
../../modules/syncthing
|
||||||
|
../../modules/tailscale
|
||||||
../../modules/users
|
../../modules/users
|
||||||
../../modules/wol
|
../../modules/wol
|
||||||
../../modules/yubikey
|
../../modules/yubikey
|
||||||
../../modules/hcloud
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users.${config.host.username} = import ../../home/hosts/andromache {
|
home-manager.users.${config.host.username} = import ../../home/hosts/andromache {
|
||||||
@@ -62,7 +63,11 @@ in
|
|||||||
inherit (config.host) username;
|
inherit (config.host) username;
|
||||||
nixSigningKey.enable = true;
|
nixSigningKey.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
tailscale.enable = true;
|
||||||
|
|
||||||
docker.user = config.host.username;
|
docker.user = config.host.username;
|
||||||
|
|
||||||
hcloud = {
|
hcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
inherit (config.host) username;
|
inherit (config.host) username;
|
||||||
|
|||||||
17
modules/tailscale/default.nix
Normal file
17
modules/tailscale/default.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.tailscale = {
|
||||||
|
enable = lib.mkEnableOption "tailscale";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.tailscale.enable {
|
||||||
|
services.tailscale = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user