{ config, pkgs, lib, ... }: { options = { system.hostname = lib.mkOption { default = "${config.user.userName}-device"; description = "hostname"; }; }; config = { networking = { domain = "marty.tf"; hostName = config.system.hostname; networkmanager.enable = true; firewall = { enable = true; allowedUDPPorts = [ config.services.tailscale.port 53317 16261 16262 ]; allowedTCPPorts = [ 53317 16261 16262 ]; trustedInterfaces = [ "tailscale0" ]; }; }; services = { tailscale = { enable = true; extraSetFlags = [ "--ssh" ]; }; }; hardware = { bluetooth = { enable = true; powerOnBoot = true; settings = { General = { Experimental = true; }; }; }; }; environment.systemPackages = with pkgs; [ oniux ]; }; environment.systemPackages = with pkgs; [ oniux ]; }