diff --git a/config/hardware/plato.nix b/config/hardware/plato.nix index a76a1b4..89549ee 100644 --- a/config/hardware/plato.nix +++ b/config/hardware/plato.nix @@ -95,87 +95,3 @@ }; }; } - - - - - - - -{ config, lib, pkgs, ... }: - -with lib; { - boot = { - initrd = { - availableKernelModules = - [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" ]; - kernelModules = [ ]; - }; - kernelModules = [ "kvm-intel" ]; - extraModulePackages = [ ]; - loader = { - systemd-boot.enable = true; - efi.canTouchEfiVariables = true; - }; - - supportedFilesystems = [ "zfs" ]; - }; - - fileSystems = { - "/boot" = { - device = "/dev/disk/by-label/PLATO-BOOT"; - fsType = "vfat"; - }; - - "/" = { - device = "zroot/transient/root"; - fsType = "zfs"; - }; - - "/nix" = { - device = "zroot/transient/nix"; - fsType = "zfs"; - }; - - "/var/log" = { - device = "zroot/transient/logs"; - fsType = "zfs"; - neededForBoot = true; - }; - - "/home" = { - device = "zroot/persistent/home"; - fsType = "zfs"; - }; - - "/state" = { - device = "zroot/persistent/state"; - fsType = "zfs"; - }; - }; - - services.zfs.autoScrub.enable = true; - - swapDevices = [{ device = "/dev/disk/by-label/plato-swap"; }]; - - nix.maxJobs = lib.mkDefault 4; - - hardware.bluetooth.enable = false; - - networking = { - macvlans = { - intif0 = { - interface = "enp1s0"; - mode = "bridge"; - }; - }; - - interfaces = { - enp1s0.useDHCP = false; - intif0 = { - macAddress = - pkgs.lib.network.generate-mac-address config.instance.hostname "intif0"; - }; - }; - }; -}