From ef2ad011cc5cd0f4782fd862d45ce15ad553030d Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Wed, 20 Apr 2022 00:04:25 -0400 Subject: [PATCH] Add ponyo --- flake.nix | 1 + machines/ponyo/configuration.nix | 31 +++++++++++++++++++++++ machines/ponyo/hardware-configuration.nix | 26 +++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 machines/ponyo/configuration.nix create mode 100644 machines/ponyo/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index 86934ba..925c86d 100644 --- a/flake.nix +++ b/flake.nix @@ -110,6 +110,7 @@ "nat" = mkSystem "aarch64-linux" nixpkgs ./machines/nat/configuration.nix; "neetdev" = mkSystem "x86_64-linux" nixpkgs ./machines/neet.dev/configuration.nix; "liza" = mkSystem "x86_64-linux" nixpkgs ./machines/liza/configuration.nix; + "ponyo" = mkSystem "x86_64-linux" nixpkgs ./machines/ponyo/configuration.nix; "s0" = mkSystem "aarch64-linux" nixpkgs-unstable ./machines/storage/s0/configuration.nix; "n1" = mkSystem "aarch64-linux" nixpkgs ./machines/compute/n1/configuration.nix; "n2" = mkSystem "aarch64-linux" nixpkgs ./machines/compute/n2/configuration.nix; diff --git a/machines/ponyo/configuration.nix b/machines/ponyo/configuration.nix new file mode 100644 index 0000000..374152d --- /dev/null +++ b/machines/ponyo/configuration.nix @@ -0,0 +1,31 @@ +{ config, pkgs, lib, ... }: + +{ + imports =[ + ./hardware-configuration.nix + ]; + + # colcxrqbxk4hzck3bhymmed7ak6juv22eve3yur2bpxk645dzsxit3yd.onion + + networking.hostName = "ponyo"; + + firmware.x86_64.enable = true; + bios = { + enable = true; + device = "/dev/sda"; + }; + + luks = { + enable = true; + device.path = "/dev/disk/by-uuid/3492819c-2e5a-44b2-a16c-1e373e8d5881"; + }; + + system.autoUpgrade.enable = true; + + services.zerotierone.enable = true; + + networking.interfaces.enp0s5.useDHCP = true; + + security.acme.acceptTerms = true; + security.acme.email = "zuckerberg@neet.dev"; +} \ No newline at end of file diff --git a/machines/ponyo/hardware-configuration.nix b/machines/ponyo/hardware-configuration.nix new file mode 100644 index 0000000..8e68edc --- /dev/null +++ b/machines/ponyo/hardware-configuration.nix @@ -0,0 +1,26 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/636c5325-9651-4475-ba13-8266878effa5"; + fsType = "btrfs"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/c77e8917-5298-4490-8cc0-86af1a315ef1"; + fsType = "ext3"; + }; + + swapDevices = [ ]; + + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} \ No newline at end of file