mirror of
https://github.com/larstvei/nix-config.git
synced 2025-12-31 12:10:12 +00:00
Add target for vm-aarch64
This commit is contained in:
parent
cb4552b22f
commit
7b4e396685
@ -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
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
20
machines/vm-aarch64/default.nix
Normal file
20
machines/vm-aarch64/default.nix
Normal 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";
|
||||||
|
}
|
||||||
47
machines/vm-aarch64/hardware/default.nix
Normal file
47
machines/vm-aarch64/hardware/default.nix
Normal 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";
|
||||||
|
}
|
||||||
@ -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 = [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user