Das Netzwerk in der Riesaer Str. 32 https://zentralwerk.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
network/nix/nixos-module/server/server1.nix

52 lines
1.2 KiB

{ config, ... }:
{
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "server1"; # Define your hostname.
networking.hostId = "01010101";
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ata_piix" "hpsa" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.extraModulePackages = [ ];
nixpkgs.config.allowBroken = true;
boot.zfs.enableUnstable = true;
boot.supportedFilesystems = [ "zfs" ];
boot.initrd.supportedFilesystems = [ "zfs" ];
# Required for Broadcom NICs
hardware.enableRedistributableFirmware = true;
fileSystems."/" =
{ device = "server1/root";
fsType = "zfs";
};
fileSystems."/var" =
{ device = "server1/root/var";
fsType = "zfs";
};
fileSystems."/nix" =
{ device = "server1/root/nix";
fsType = "zfs";
};
fileSystems."/nix/store" =
{ device = "server1/root/nix/store";
fsType = "zfs";
};
fileSystems."/nix/var" =
{ device = "server1/root/nix/var";
fsType = "zfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-label/ESP";
fsType = "vfat";
};
swapDevices = [ ];
}