feat: add host zackbiene

This commit is contained in:
oddlama 2023-02-20 20:38:49 +01:00
parent 99056be50d
commit df628838bf
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
5 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{
config,
nixos-hardware,
pkgs,
...
}: {
imports = [
nixos-hardware.common-pc-ssd
../../modules/core
../../modules/efi.nix
../../modules/zfs.nix
../../users/root
./fs.nix
./net.nix
];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
powerManagement.cpuFreqGovernor = "powersave";
services.home-assistant = {
enable = true;
extraComponents = ["default_config" "met" "zha"];
openFirewall = true;
config = {
default_config = {};
met = {};
};
};
#networking.firewall.allowedTCPPorts = [1883];
#services.zigbee2mqtt.enable = true;
#services.zigbee2mqtt.settings = {
# homeassistant = config.services.home-assistant.enable;
# permit_join = true;
# serial = {
# port = "/dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0";
# };
#};
}

16
hosts/zackbiene/fs.nix Normal file
View file

@ -0,0 +1,16 @@
{
fileSystems = {
"/" = {
device = "rpool/root/nixos";
fsType = "zfs";
options = ["zfsutil" "X-mount.mkdir"];
};
"/boot" = {
device = "/dev/disk/by-uuid/TODO";
fsType = "vfat";
};
};
swapDevices = [];
}

7
hosts/zackbiene/meta.nix Normal file
View file

@ -0,0 +1,7 @@
{
type = "nixos";
system = "aarch64-linux";
physical_connections = {
"10-lan1" = "LAN 1";
};
}

15
hosts/zackbiene/net.nix Normal file
View file

@ -0,0 +1,15 @@
{
networking = {
hostId = "68a7bba3";
};
systemd.network.networks = {
"10-lan1" = {
DHCP = "yes";
matchConfig.MACAddress = "TODO";
networkConfig.IPv6PrivacyExtensions = "kernel";
dhcpV4Config.RouteMetric = 10;
dhcpV6Config.RouteMetric = 10;
};
};
}