nixcfg/hosts/common/network.nix

17 lines
334 B
Nix
Raw Normal View History

{config, ...}: {
networking.networkmanager = {
enable = true;
ensureProfiles = {
environmentFiles = [config.age.secrets.wifi.path];
2024-07-19 22:25:16 -04:00
profiles = import ./wifi.nix;
};
};
services.tailscale = {
enable = true;
2024-07-17 23:02:15 -04:00
openFirewall = true;
authKeyFile = config.age.secrets.tailscaleAuthKey.path;
};
}