init
This commit is contained in:
16
hw.nix
Normal file
16
hw.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
# Let the image format own the root FS mapping
|
||||
fileSystems."/" = lib.mkForce {
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
# Make the image self-booting under libvirt
|
||||
# virtualisation.useBootLoader = true;
|
||||
boot.loader.grub.device = "/dev/vda";
|
||||
|
||||
# Optional: auto-grow root at first boot
|
||||
boot.growPartition = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user