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 =
system:
nixpkgs.lib.nixosSystem {
inherit system;
in
{
nixosConfigurations = {
vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{ nixpkgs.overlays = overlays; }
./hosts/vm/configuration.nix
./modules
./modules/profiles/desktop
home-manager.nixosModules.home-manager
];
specialArgs = {
inherit myData;
} // inputs;
};
in
{
nixosConfigurations = {
vm-x86_64 = mkVM "x86_64-linux";
vm-aarch64 = mkVM "aarch64-linux";
mtworx = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";

View File

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