feat: home automation server

This commit is contained in:
Jan-Bulthuis committed 2026-10-23 01:07:53 +02:00
1 parent cc4b4e4fd9
commit 6bfbea2195
5 files changed
+202 -60

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
{
...
}:
{
# State version
system.stateVersion = "25.05";
# Machine hostname
networking.hostName = "ws-home";
# Enabled modules
modules = {
profiles.server.enable = true;
disko.profile = "ws-home";
};
# Matter controller
services.matterjs-server = {
enable = true;
listenAddress = "::";
openFirewall = true;
};
modules.impermanence.directories = [
"/var/lib/private/matterjs-server"
];
systemd.tmpfiles.rules = [
"d /var/lib/private 0700 root root -"
];
networking.firewall.allowedUDPPorts = [
5353 # mDNS
5540 # Matter
];
# Set up hardware
imports = [ ./hardware-configuration.nix ];
}
+18
View File
@@ -0,0 +1,18 @@
{ ... }:
# TODO: Replace with output of `nixos-generate-config --show-hardware-config`
{
# Hardware configuration
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.zfs.forceImportRoot = false;
hardware.cpu.intel.updateMicrocode = true;
}