os/hosts/cox/configuration.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.3 KiB
Nix
Raw Normal View History

2022-08-21 22:53:04 +00:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{
2023-02-25 13:45:21 +00:00
config,
pkgs,
lib,
...
}: {
imports = [
./backup.nix
./home-controller.nix
./paperless.nix
2023-11-11 00:12:57 +00:00
./owntone.nix
./jellyfin.nix
./photoprism.nix
2023-02-25 13:45:21 +00:00
];
2022-08-21 22:53:04 +00:00
time.timeZone = "Europe/Berlin";
2023-11-10 14:41:48 +00:00
boot.plymouth.enable = lib.mkForce false;
pub-solar.nextcloud.enable = lib.mkForce false;
2023-11-11 00:12:57 +00:00
networking = {
vlans = {
vlan102 = {
id = 102;
interface = "eth0";
}; # iot vlan
vlan104 = {
id = 104;
interface = "eth0";
}; # media vlan
};
interfaces = {
eth0 = {
useDHCP = true;
mtu = 1460;
};
vlan102 = {
mtu = 1460;
ipv4.addresses = [{
address = "172.16.0.12";
prefixLength = 24;
}];
};
vlan104 = {
mtu = 1460;
ipv4.addresses = [{
address = "10.42.0.12";
prefixLength = 24;
}];
};
};
};
2023-10-05 21:57:34 +00:00
networking.networkmanager.enable = false;
2022-08-21 22:53:04 +00:00
2023-11-11 00:12:57 +00:00
networking.firewall = {
allowedUDPPorts = [1900];
};
2022-08-21 22:53:04 +00:00
2023-10-05 21:57:34 +00:00
virtualisation.podman.enable = true;
2022-08-21 22:53:04 +00:00
2023-10-05 21:57:34 +00:00
system.stateVersion = "22.11";
2022-08-21 22:53:04 +00:00
}