add new host

This commit is contained in:
2024-10-17 03:07:24 +05:30
parent d27b9d0d7a
commit 64d879b4a7
6 changed files with 147 additions and 28 deletions

50
hosts/vega/default.nix Normal file
View File

@ -0,0 +1,50 @@
{...}: {
imports = [
./hardware-configuration.nix
../common
];
boot.initrd.availableKernelModules = [
"usbhid"
"usb_storage"
"vc4"
"pcie_brcmstb" # required for the pcie bus to work
"reset-raspberrypi" # required for vl805 firmware to load
];
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)
boot.loader.grub.enable = false;
# Enables the generation of /boot/extlinux/extlinux.conf
boot.loader.generic-extlinux-compatible.enable = true;
hardware.enableRedistributableFirmware = true;
powerManagement.cpuFreqGovernor = "ondemand";
networking = {
hostName = "vega";
networkmanager = {
enable = true;
wifi.powersave = false;
};
firewall = {
enable = true;
allowedTCPPorts = [22];
# Facilitate firewall punching
allowedUDPPorts = [41641];
};
};
services = {
tailscale = {
enable = true;
extraUpFlags = ["--login-server https://hs.tux.rs"];
};
};
environment.persistence."/persist" = {
enable = false;
};
system.stateVersion = "24.11";
}