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"; +}