Add target for vm-aarch64

This commit is contained in:
larstvei 2025-12-28 18:59:20 +01:00
parent cb4552b22f
commit 7b4e396685
4 changed files with 85 additions and 2 deletions

View File

@ -57,5 +57,14 @@
./machines/thinkpad ./machines/thinkpad
]; ];
}; };
nixosConfigurations.vm-aarch64 = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
specialArgs = { inherit inputs; };
modules = [
home-manager.nixosModules.default
./machines/vm-aarch64
];
};
}; };
} }

View File

@ -0,0 +1,20 @@
{
imports = [
./hardware
../../modules/base
../../modules/nixos
];
home-manager.users.larstvei.imports = [
../../modules/home/minimal
../../modules/desktop
];
networking.hostName = "larstvei-vm";
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
system.stateVersion = "25.11";
}

View File

@ -0,0 +1,47 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"virtio_pci"
"usbhid"
"usb_storage"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/43e64adc-66d8-4e08-ae34-3305b0c48899";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/CFA9-A100";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/0c07a011-252e-4c69-b6d0-0e1878debbbb"; }
];
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}

View File

@ -1,14 +1,21 @@
{ pkgs, inputs, ... }: {
pkgs,
lib,
inputs,
...
}:
{ {
home.packages = [ home.packages = [
pkgs.adwaita-icon-theme pkgs.adwaita-icon-theme
pkgs.brightnessctl pkgs.brightnessctl
pkgs.grimblast pkgs.grimblast
pkgs.google-chrome
pkgs.pamixer pkgs.pamixer
pkgs.wl-clipboard pkgs.wl-clipboard
pkgs.wtype pkgs.wtype
]
++ lib.optionals (pkgs.stdenv.hostPlatform.isx86_64) [
pkgs.google-chrome
]; ];
imports = [ imports = [