30 lines
734 B
Nix
30 lines
734 B
Nix
{ config, lib, ... }:
|
|
{
|
|
config = lib.mkMerge [
|
|
{
|
|
networking = {
|
|
enableIPv6 = false;
|
|
useDHCP = lib.mkDefault true;
|
|
hostName = config.system.hostname;
|
|
networkmanager.enable = true;
|
|
};
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PrintMotd = true;
|
|
};
|
|
};
|
|
|
|
services.tailscale = {
|
|
enable = true;
|
|
authKeyFile = config.sops.secrets."keys/tailscale".path;
|
|
};
|
|
environment.persistence."/persist".directories = [ "/var/lib/tailscale" ];
|
|
}
|
|
(lib.mkIf config.desktop.enableSpotifyd {
|
|
networking.firewall.allowedTCPPorts = [ 5353 ];
|
|
networking.firewall.allowedUDPPorts = [ 5353 ];
|
|
})
|
|
];
|
|
}
|