holy shit im stupid, a lot of changes.
also added the configuration bc idk how to add only certain files but whatever
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.homelab.networking.tailscale;
|
||||
user = config.homelab.networking.user;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
extraSetFlags = [ "--operator=${cfg.user}" ];
|
||||
extraSetFlags = [ "--operator=${user}" ];
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
@@ -22,7 +23,7 @@ in
|
||||
systemd.network.wait-online.enable = false;
|
||||
boot.initrd.systemd.network.wait-online.enable = false;
|
||||
|
||||
users.users.${cfg.user}.extraGroups = [
|
||||
users.users.${user}.extraGroups = [
|
||||
"tailscale"
|
||||
];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user