vm: only x86_64-linux

This commit is contained in:
Motiejus Jakštys 2024-12-02 19:47:05 +02:00
parent b42f4b2562
commit 4253e78b07
2 changed files with 9 additions and 15 deletions

View File

@ -123,28 +123,20 @@
}) })
]; ];
mkVM = in
system: {
nixpkgs.lib.nixosSystem { nixosConfigurations = {
inherit system; vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ modules = [
{ nixpkgs.overlays = overlays; } { nixpkgs.overlays = overlays; }
./hosts/vm/configuration.nix ./hosts/vm/configuration.nix
./modules
./modules/profiles/desktop
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
]; ];
specialArgs = { specialArgs = {
inherit myData; inherit myData;
} // inputs; } // inputs;
}; };
in
{
nixosConfigurations = {
vm-x86_64 = mkVM "x86_64-linux";
vm-aarch64 = mkVM "aarch64-linux";
mtworx = nixpkgs.lib.nixosSystem { mtworx = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";

View File

@ -7,10 +7,13 @@
imports = [ imports = [
"${modulesPath}/profiles/all-hardware.nix" "${modulesPath}/profiles/all-hardware.nix"
"${modulesPath}/installer/cd-dvd/iso-image.nix" "${modulesPath}/installer/cd-dvd/iso-image.nix"
../../modules
../../modules/profiles/btrfs
../../modules/profiles/desktop
]; ];
mj = { mj = {
stateVersion = "24.05"; stateVersion = "24.11";
timeZone = "UTC"; timeZone = "UTC";
username = "nixos"; username = "nixos";
@ -24,7 +27,6 @@
boot = { boot = {
loader.systemd-boot.enable = true; loader.systemd-boot.enable = true;
supportedFilesystems = [ supportedFilesystems = [
"zfs"
"btrfs" "btrfs"
]; ];
}; };