mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-29 01:48:29 +02:00
add basic vm configuration
This commit is contained in:
parent
a9cfb32b12
commit
26e43a6da8
5 changed files with 111 additions and 6 deletions
23
hosts/vm/hardware-configuration.nix
Normal file
23
hosts/vm/hardware-configuration.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{
|
||||
|
||||
# Replace with actual config
|
||||
device = "/dev/sda";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue