Refactor hardware files into machine folders

This commit is contained in:
Nathan McCarty 2023-06-04 09:06:59 -04:00
parent 74752e6fe7
commit 92f8772374
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
8 changed files with 15 additions and 28 deletions

View File

@ -115,23 +115,27 @@
system = "x86_64-linux";
hostName = "levitation";
extraModules = [
./hardware/levitation.nix
./machines/levitation/configuration.nix
./machines/levitation/hardware.nix
];
};
oracles = makeNixosSystem {
system = "x86_64-linux";
hostName = "oracles";
extraModules =
[ ./hardware/oracles.nix ./machines/oracles/configuration.nix ];
extraModules = [
./machines/oracles/hardware.nix
./machines/oracles/configuration.nix
];
};
matrix = makeNixosSystem {
system = "x86_64-linux";
hostName = "matrix";
extraModules =
[ ./hardware/matrix.nix ./machines/matrix/configuration.nix ];
extraModules = [
./machines/matrix/hardware.nix
./machines/matrix/configuration.nix
];
};
tounge = makeNixosSystem {
@ -145,15 +149,17 @@
hostName = "perception";
extraModules = [
./machines/perception/configuration.nix
./hardware/perception.nix
./machines/perception/hardware.nix
];
};
fusion = makeNixosSystem {
system = "aarch64-linux";
hostName = "fusion";
extraModules =
[ ./machines/fusion/configuration.nix ./hardware/fusion.nix ];
extraModules = [
./machines/fusion/hardware.nix
./machines/fusion/configuration.nix
];
};
x86vm = makeNixosSystem {
@ -180,7 +186,7 @@
hostName = "productivity-vm";
extraModules = [
./machines/productivity-vm/configuration.nix
./hardware/productivity-vm.nix
./machines/productivity-vm/hardware.nix
];
};

View File

@ -1,19 +0,0 @@
{ modulesPath, ... }: {
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
device = "nodev";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/94E8-7477";
fsType = "vfat";
};
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = {
device = "/dev/sda1";
fsType = "ext4";
};
swapDevices = [{ device = "/swapfile"; }];
}