aboutsummaryrefslogtreecommitdiff
path: root/machines/phaenn/default.nix
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2023-08-11 16:51:35 +0200
committerMax Audron <audron@cocaine.farm>2023-08-11 16:51:35 +0200
commit5828af9fc19e18dc85e49fcc1a251a7eb25d909c (patch)
treec70c3e52237c08d3fdcb2f1269c524c25e3feeb8 /machines/phaenn/default.nix
init
Diffstat (limited to '')
-rw-r--r--machines/phaenn/default.nix47
1 files changed, 47 insertions, 0 deletions
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;
+}
deletions'>-5/+12 2021-06-23add ability to use path and dotted syntax for functionsMax Audron-8/+39 2021-06-21publish macros subcrateMax Audron-20/+20 2021-06-13release version 1.2.1Max Audron-2/+2 2021-06-13fix crash on message only containing whitespaceMax Audron-1/+4 2021-06-11Release version 1.2.01.2.0Max Audron-2/+2 2021-06-06make pet more compactR0flcopt3r/catinator-pet-commandMax Audron-5/+5 2021-06-05feat: adds pet command.R0flcopt3r-0/+90 2021-06-05feat: send actionR0flcopt3r-1/+9 2021-06-05release version 1.1.0Max Audron-2/+2 2021-06-05document proc macrosMax Audron-4/+97 2021-06-05add intensifyMax Audron-3/+27 2021-06-05add privmsg macroMax Audron-2/+40 2021-06-05fix jb remote urlsMax Audron-4/+4 2021-06-05remove egress gateway configMax Audron-10/+0 2021-06-05update tanka dependenciesMax Audron-8/+8 2021-06-05fix init container nameMax Audron-1/+1 2021-06-05fix tanka dependency pathMax Audron-8/+8 2021-06-05switch to https url for tanka util libMax Audron-2/+2 2021-06-05bump version to 1.0.2Max Audron-2/+2 2021-06-05add tanka ci configurationMax Audron-1/+1 2021-06-05ready tanka deploy for CIMax Audron-32/+69 2021-06-05remove tanka vendoringMax Audron-27651/+0 2021-05-26Release 1.0.1Max Audron-3/+3 2021-05-26fix log breaking once buffer fullMax Audron-2/+33 2021-05-16add deployment stuffMax Audron-6/+27786 2021-05-15add container buildMax Audron-2/+35