Compare commits
2 Commits
9c250f3d50
...
97d3e9cf81
Author | SHA1 | Date |
---|---|---|
|
97d3e9cf81 | |
|
33e04b631a |
|
@ -5,7 +5,7 @@
|
|||
1. Build the virtual machine
|
||||
|
||||
```
|
||||
nix run -L '.#nixosConfigurations.mymachine.config.system.build.vmWithDisko'
|
||||
nix run -L '.#nixosConfigurations.vm.config.system.build.vmWithDisko'
|
||||
```
|
||||
|
||||
2. Run the virtual machine
|
||||
|
|
|
@ -18,22 +18,12 @@
|
|||
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue