Refactor.
This commit is contained in:
parent
69088478f0
commit
667f337363
14 changed files with 173 additions and 164 deletions
26
hosts/server/weebill.nix
Normal file
26
hosts/server/weebill.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
|
||||
initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
];
|
||||
loader = {
|
||||
grub.enable = false;
|
||||
generic-extlinux-compatible.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-label/NIXOS_SD";
|
||||
fsType = "ext4";
|
||||
options = [ "noatime" ];
|
||||
};
|
||||
};
|
||||
|
||||
# Open ports for DHCP server.
|
||||
networking.firewall.allowedUDPPorts = [ 53 67 ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue