Compare commits
2 Commits
97d3e9cf81
...
9c250f3d50
Author | SHA1 | Date |
---|---|---|
|
9c250f3d50 | |
|
000eeec743 |
|
@ -5,7 +5,7 @@
|
||||||
1. Build the virtual machine
|
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
|
2. Run the virtual machine
|
||||||
|
|
|
@ -18,12 +18,22 @@
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
# virtualisation.vmVariantWithDisko = {
|
virtualisation.vmVariantWithDisko = {
|
||||||
# virtualisation.fileSystems."/".neededForBoot = true;
|
virtualisation.fileSystems."/".neededForBoot = true;
|
||||||
# };
|
};
|
||||||
|
|
||||||
disko.devices.disk.main.device = "/dev/vda";
|
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.git.enable = true;
|
||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue