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