Refactor hardware files into machine folders
This commit is contained in:
parent
74752e6fe7
commit
92f8772374
24
flake.nix
24
flake.nix
|
@ -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
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -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"; }];
|
||||
}
|
Loading…
Reference in New Issue