Compare commits

..

2 Commits

Author SHA1 Message Date
Hektor Misplon 9c250f3d50 Update NixOS readme 2025-10-05 12:36:14 +02:00
Hektor Misplon 000eeec743 Use disko 'single-disk-ext4' template for vm host 2025-10-05 12:31:24 +02:00
2 changed files with 14 additions and 4 deletions

View File

@ -5,7 +5,7 @@
1. Build the virtual machine
```
nix run -L '.#nixosConfigurations.vm.config.system.build.vmWithDisko'
nix run -L '.#nixosConfigurations.mymachine.config.system.build.vmWithDisko'
```
2. Run the virtual machine

View File

@ -18,12 +18,22 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# virtualisation.vmVariantWithDisko = {
# virtualisation.fileSystems."/".neededForBoot = true;
# };
virtualisation.vmVariantWithDisko = {
virtualisation.fileSystems."/".neededForBoot = true;
};
disko.devices.disk.main.device = "/dev/vda";
# These are needed for ZFS
networking.hostId = "25698a58";
# https://discourse.nixos.org/t/zfs-with-disko-faluire-to-import-zfs-pool/61988/3
boot = {
zfs = {
devNodes = "/dev/disk/by-uuid";
};
};
programs.git.enable = true;
programs.firefox.enable = true;