architect: disabled services, updated network interface after hw change
This commit is contained in:
parent
02c0984a3f
commit
ef949684f0
@ -26,34 +26,33 @@ in
|
|||||||
./matrix.nix
|
./matrix.nix
|
||||||
./fail2ban.nix
|
./fail2ban.nix
|
||||||
./dns.nix
|
./dns.nix
|
||||||
./minecraft.nix
|
# ./minecraft.nix
|
||||||
./prowlarr.nix
|
./prowlarr.nix
|
||||||
./libreddit.nix
|
./libreddit.nix
|
||||||
# ./invidious.nix
|
# ./invidious.nix
|
||||||
# ./lidarr.nix
|
# ./lidarr.nix
|
||||||
# ./navidrome.nix
|
# ./navidrome.nix
|
||||||
# ./jellyfin.nix
|
./jellyfin.nix
|
||||||
# ./prosody.nix
|
# ./prosody.nix
|
||||||
./deluge.nix
|
# ./deluge.nix
|
||||||
#./calibre.nix
|
#./calibre.nix
|
||||||
./docker.nix
|
./docker.nix
|
||||||
# ./keycloak.nix
|
# ./keycloak.nix
|
||||||
# ./runas.nix
|
# ./runas.nix
|
||||||
./tailscale.nix
|
./tailscale.nix
|
||||||
# ./searx.nix
|
# ./searx.nix
|
||||||
./plex.nix
|
# ./plex.nix
|
||||||
./headscale.nix
|
./headscale.nix
|
||||||
./llm.nix
|
./llm.nix
|
||||||
./photoprism.nix
|
# ./photoprism.nix
|
||||||
|
./sunshine.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
architect = {
|
architect = {
|
||||||
networks.lan = {
|
networks.lan = {
|
||||||
interface = "enp5s0";
|
interface = "enp6s0";
|
||||||
net = "10.0.0.0/24";
|
net = "10.0.0.0/24";
|
||||||
devices = {
|
devices = {
|
||||||
vodafoneStation = { address = "192.168.1.1"; hostname = "vodafone.station"; };
|
|
||||||
|
|
||||||
architect = { address = "10.0.0.250"; hostname = "architect.${domain}"; };
|
architect = { address = "10.0.0.250"; hostname = "architect.${domain}"; };
|
||||||
router = { address = "10.0.0.1"; hostname = "router.${domain}"; };
|
router = { address = "10.0.0.1"; hostname = "router.${domain}"; };
|
||||||
dvr = { address = "10.0.0.3"; hostname = "dvr.${domain}"; };
|
dvr = { address = "10.0.0.3"; hostname = "dvr.${domain}"; };
|
||||||
@ -62,11 +61,10 @@ in
|
|||||||
|
|
||||||
firewall = {
|
firewall = {
|
||||||
openTCP = [ 22 ];
|
openTCP = [ 22 ];
|
||||||
openTCPVPN = [ 22 ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "Europe/Rome";
|
time.timeZone = "Europe/London";
|
||||||
users.users.giulio.openssh.authorizedKeys.keys = pubkeys;
|
users.users.giulio.openssh.authorizedKeys.keys = pubkeys;
|
||||||
boot = {
|
boot = {
|
||||||
initrd = {
|
initrd = {
|
||||||
@ -84,9 +82,6 @@ in
|
|||||||
|
|
||||||
kernelParams = with config.architect.networks.lan; [
|
kernelParams = with config.architect.networks.lan; [
|
||||||
"ip=${devices.architect.address}::${devices.router.address}:255.255.255.0::${interface}:off"
|
"ip=${devices.architect.address}::${devices.router.address}:255.255.255.0::${interface}:off"
|
||||||
"nvme_core.default_ps_max_latency_us=5500"
|
|
||||||
"zfs_arc_max=1073741824"
|
|
||||||
"memmap=32M$0x4ca6f9478"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
kernelPackages = pkgs.linuxPackages;
|
kernelPackages = pkgs.linuxPackages;
|
||||||
@ -116,8 +111,8 @@ in
|
|||||||
address = devices.architect.address;
|
address = devices.architect.address;
|
||||||
prefixLength = 24;
|
prefixLength = 24;
|
||||||
}];
|
}];
|
||||||
enp6s0.useDHCP = false;
|
# enp6s0.useDHCP = false;
|
||||||
wlp4s0.useDHCP = false;
|
# wlp4s0.useDHCP = false;
|
||||||
};
|
};
|
||||||
extraHosts = (generateDeviceStrings config.architect.networks.lan.devices) + ''
|
extraHosts = (generateDeviceStrings config.architect.networks.lan.devices) + ''
|
||||||
|
|
||||||
@ -169,7 +164,6 @@ in
|
|||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
variables = { LIBVA_DRIVER_NAME = "vdpau"; };
|
variables = { LIBVA_DRIVER_NAME = "vdpau"; };
|
||||||
systemPackages = with pkgs; [ cachix linuxPackages.usbip ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user