server and other shit
This commit is contained in:
parent
270e1a0be4
commit
804371bf96
65 changed files with 1428 additions and 619 deletions
|
|
@ -1,42 +1,59 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
networking = {
|
||||
domain = "maty.tf";
|
||||
networkmanager.enable = true;
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedUDPPorts = [
|
||||
config.services.tailscale.port
|
||||
53317
|
||||
16261
|
||||
16262
|
||||
];
|
||||
allowedTCPPorts = [
|
||||
53317
|
||||
16261
|
||||
16262
|
||||
];
|
||||
trustedInterfaces = [ "tailscale0" ];
|
||||
options = {
|
||||
system.hostname = lib.mkOption {
|
||||
default = "${config.user.userName}-device";
|
||||
description = "hostname";
|
||||
};
|
||||
};
|
||||
services = {
|
||||
tailscale = {
|
||||
enable = true;
|
||||
extraSetFlags = [
|
||||
"--ssh"
|
||||
];
|
||||
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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
hardware = {
|
||||
bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
settings = {
|
||||
General = {
|
||||
Experimental = true;
|
||||
services = {
|
||||
tailscale = {
|
||||
enable = true;
|
||||
extraSetFlags = [
|
||||
"--ssh"
|
||||
];
|
||||
};
|
||||
};
|
||||
hardware = {
|
||||
bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
settings = {
|
||||
General = {
|
||||
Experimental = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
oniux
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue