From 2687cd04628c3ca1d86d826a497ff00648a3a688 Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Tue, 18 Apr 2023 23:28:03 -0600 Subject: [PATCH] phil --- flake.nix | 1 + machines/phil/configuration.nix | 9 +++++ machines/phil/hardware-configuration.nix | 42 ++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 machines/phil/configuration.nix create mode 100644 machines/phil/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index bc62205..fe8d979 100644 --- a/flake.nix +++ b/flake.nix @@ -94,6 +94,7 @@ "ray" = mkSystem "x86_64-linux" nixpkgs ./machines/ray/configuration.nix; # "nat" = mkSystem "aarch64-linux" nixpkgs ./machines/nat/configuration.nix; "ponyo" = mkSystem "x86_64-linux" nixpkgs ./machines/ponyo/configuration.nix; + "phil" = mkSystem "aarch64-linux" nixpkgs ./machines/phil/configuration.nix; "router" = mkSystem "x86_64-linux" nixpkgs ./machines/router/configuration.nix; "s0" = mkSystem "x86_64-linux" nixpkgs ./machines/storage/s0/configuration.nix; }; diff --git a/machines/phil/configuration.nix b/machines/phil/configuration.nix new file mode 100644 index 0000000..8dac03c --- /dev/null +++ b/machines/phil/configuration.nix @@ -0,0 +1,9 @@ +{ config, pkgs, lib, ... }: + +{ + imports = [ + ./hardware-configuration.nix + ]; + + networking.hostName = "phil"; +} diff --git a/machines/phil/hardware-configuration.nix b/machines/phil/hardware-configuration.nix new file mode 100644 index 0000000..f63c0d1 --- /dev/null +++ b/machines/phil/hardware-configuration.nix @@ -0,0 +1,42 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ + (modulesPath + "/profiles/qemu-guest.nix") + ]; + + efi.enable = true; + + boot.initrd.availableKernelModules = [ "xhci_pci" ]; + boot.initrd.kernelModules = [ "dm-snapshot" ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + boot.initrd.luks.devices."enc-pv" = { + device = "/dev/disk/by-uuid/2abaf721-6265-4e37-b369-e44eac54d047"; + allowDiscards = true; + }; + + fileSystems."/" = + { + device = "/dev/disk/by-uuid/91bbdebb-9a2b-4a75-acaa-c1cfd013a667"; + fsType = "btrfs"; + }; + + fileSystems."/boot" = + { + device = "/dev/disk/by-uuid/EC6B-53AA"; + fsType = "vfat"; + }; + + swapDevices = + [{ device = "/dev/disk/by-uuid/1301147e-fc45-4c76-b102-d43385ccfae2"; }]; + + networking.interfaces.enp0s6.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; +}