From 5828af9fc19e18dc85e49fcc1a251a7eb25d909c Mon Sep 17 00:00:00 2001 From: Max Audron Date: Fri, 11 Aug 2023 16:51:35 +0200 Subject: init --- machines/phaenn/default.nix | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 machines/phaenn/default.nix (limited to 'machines/phaenn/default.nix') diff --git a/machines/phaenn/default.nix b/machines/phaenn/default.nix new file mode 100644 index 0000000..8fbbfab --- /dev/null +++ b/machines/phaenn/default.nix @@ -0,0 +1,47 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + ./fs.nix + ]; + + boot.initrd.availableKernelModules = [ "ahci" "nvme" ]; + boot.initrd.kernelModules = [ "zfs" ]; + boot.kernelModules = [ "kvm-amd" "zfs" ]; + boot.extraModulePackages = [ ]; + + boot.loader.grub = { + zfsSupport = true; + mirroredBoots = [ + { devices = [ "/dev/sdd" ]; path = "/boot"; } + { devices = [ "/dev/sdc" ]; path = "/boot2"; } + { devices = [ "/dev/sda" ]; path = "/boot3"; } + { devices = [ "/dev/sdb" ]; path = "/boot4"; } + ]; + }; + + networking = { + domain = "vapor.systems"; + hostId = "f9274217"; + dhcpcd.enable = false; + usePredictableInterfaceNames = false; + enableIPv6 = true; + interfaces.eth0.ipv4.addresses = [{ + address = "142.132.159.202"; + prefixLength = 26; + }]; + interfaces.eth0.ipv6.addresses = [{ + address = "2a01:4f8:261:3a04::1"; + prefixLength = 64; + }]; + defaultGateway = "142.132.159.193"; + defaultGateway6 = { + address = "fe80::1"; + interface = "eth0"; + }; + nameservers = [ "1.1.1.1" "8.8.8.8" ]; + }; + + powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} -- cgit v1.2.3