-
-
Save grahamc/b85725db4f90aa03004583f9bac56225 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
swapDevices = [ | |
{ | |
device = "/dev/disk/by-id/wwn-0x55cd2e414fbc7a97-part2"; | |
} | |
]; | |
fileSystems = { | |
"/boot" = { | |
device = "/dev/disk/by-id/wwn-0x55cd2e414fbc7a97-part1"; | |
fsType = "vfat"; | |
}; | |
"/" = { | |
device = "npool/root"; | |
fsType = "zfs"; | |
options = [ "defaults" ]; | |
}; | |
"/nix" = { | |
device = "npool/nix"; | |
fsType = "zfs"; | |
options = [ "defaults" ]; | |
}; | |
"/var" = { | |
device = "npool/var"; | |
fsType = "zfs"; | |
options = [ "defaults" ]; | |
}; | |
"/home" = { | |
device = "npool/home"; | |
fsType = "zfs"; | |
options = [ "defaults" ]; | |
}; | |
}; | |
boot.loader.efi.efiSysMountPoint = "/boot"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ networking.hostId = "57671801"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
networking.hostName = "c2-medium-zfs-test"; | |
networking.dhcpcd.enable = false; | |
networking.defaultGateway = { | |
address = "147.75.75.221"; | |
interface = "bond0"; | |
}; | |
networking.defaultGateway6 = { | |
address = "2604:1380:0:d600::14"; | |
interface = "bond0"; | |
}; | |
networking.nameservers = [ | |
"147.75.207.207" | |
"147.75.207.208" | |
]; | |
networking.bonds.bond0 = { | |
driverOptions = { | |
mode = "802.3ad"; | |
xmit_hash_policy = "layer3+4"; | |
lacp_rate = "fast"; | |
downdelay = "200"; | |
miimon = "100"; | |
updelay = "200"; | |
}; | |
interfaces = [ | |
"enp1s0f0" | |
"enp1s0f1" | |
]; | |
}; | |
networking.interfaces.bond0 = { | |
useDHCP = false; | |
macAddress = "98:03:9b:2f:3b:02"; | |
ipv4 = { | |
routes = [ | |
{ | |
address = "10.0.0.0"; | |
prefixLength = 8; | |
via = "10.99.98.148"; | |
} | |
]; | |
addresses = [ | |
{ | |
address = "147.75.75.222"; | |
prefixLength = 30; | |
} | |
{ | |
address = "10.99.98.149"; | |
prefixLength = 31; | |
} | |
]; | |
}; | |
ipv6 = { | |
addresses = [ | |
{ | |
address = "2604:1380:0:d600::15"; | |
prefixLength = 127; | |
} | |
]; | |
}; | |
}; | |
users.users.root.openssh.authorizedKeys.keys = [ | |
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCWapO5NQhpX4/57sTBp2i0LAeMcYMGMnlqh+xetDDMYKC08qT8izY0ZDu7cISPvR6FW9SYujwMaUHQzO5wJBER83swij66Pe4hgWkTPIQVJk07VRqD4uBabpZW+eAOsU1VNDv/QHj+1RWwiiQOGFnMTzRIaBx/ki5t+hbO42gliiHitSBMy7/ChWvi2hfTo5BwitbdmLGr6+uUrQm8t7PO2U+PYPESG/pYE/wJxTmfhuinkdZ/XGx+MBTpxGKyBzV3XfFk4Y9IxrpmNNcf4Zc7JOTQAr3jIvl5fELV3fJ7uiRLB80kAJ0hpwAyath+q4Vb4PVRCc5PN7N7po4i931X grahamc@Morbo | |
" | |
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFSwa8cFdYhwMQpc3JvgU9GyYY+pOhYDngXXiKkocUcbBmS0CPDY8HuypnJLigSMrsXMVv/RD3K2AqO5DyUY5H2hMXzD8toeiiDUWru5ig9waPz8YVf1w+XNIu5d7wK9Hw5sGRF5BmKcOylNR7Jsc8ISavZjVqhqP9Mdhq0xVbICUYCHCKfmk5Tnnj440bi3Csqa1FwXNKpBqNMTn6eZLIxA7bvpib4sYhLULD1WJk2zyEMBduG2IBQ20MSqVPldLqpZp9VHTrISomPDgKnFoUoL7jwaCWuiWo4FNPV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pxeaeUMlpbsuXOPFbvBraDZEqIvx/gIK849nIahGz3EcfaY73lVRP+MrrVHBGyQmaOLoNfzrJp8rZfLqokQQXmG1d3DzjkIi87TZLgrdxQewpk/4eKBKf8FDnEYeV3ood78SPa3syS48al99Q7e8JyAEZJfyCQkUSUxgSizU5+se1A5seDJg2Vsqef1Ah23g/lTtSn93vtjjLvObvMJTSplBO8ttG/3ylIewWYER/ /home/rbvermaa/.ssh/id_rsa" | |
]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
imports = [ | |
( | |
{ | |
boot.kernelModules = [ "dm_multipath" "dm_round_robin" "ipmi_watchdog" ]; | |
services.openssh.enable = true; | |
} | |
) | |
( | |
{ | |
nixpkgs.config.allowUnfree = true; | |
boot.loader.grub = { | |
version = 2; | |
efiSupport = true; | |
device = "nodev"; | |
efiInstallAsRemovable = true; | |
extraConfig = '' | |
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 | |
terminal_output serial console | |
terminal_input serial console | |
''; | |
}; | |
boot.initrd.availableKernelModules = [ | |
"ahci" | |
"mpt3sas" | |
"sd_mod" | |
"xhci_pci" | |
]; | |
boot.kernelModules = [ "kvm-amd" ]; | |
boot.kernelParams = [ "console=ttyS1,115200n8" ]; | |
boot.extraModulePackages = []; | |
hardware.enableAllFirmware = true; | |
} | |
) | |
( | |
{ lib, ... }: | |
{ | |
boot = { | |
loader = { | |
systemd-boot.enable = lib.mkForce false; | |
grub.enable = true; | |
efi.canTouchEfiVariables = lib.mkForce false; | |
}; | |
}; | |
} | |
) | |
]; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment