[docs] add vmWithDisko documentation
All checks were successful
Evaluate Hydra Jobs / eval-hydra-jobs (push) Successful in 4m2s
All checks were successful
Evaluate Hydra Jobs / eval-hydra-jobs (push) Successful in 4m2s
This commit is contained in:
@@ -42,6 +42,25 @@ sudo nix --extra-experimental-features "flakes nix-command" run 'github:nix-comm
|
|||||||
# failed with no space left on device.
|
# failed with no space left on device.
|
||||||
# problem is lots of data is written to the local /nix/store which is mounted on tmpfs in ram
|
# problem is lots of data is written to the local /nix/store which is mounted on tmpfs in ram
|
||||||
# it seems that a workaround could be modifying the bootable stick to contain a swap partition to extend tmpfs storage
|
# it seems that a workaround could be modifying the bootable stick to contain a swap partition to extend tmpfs storage
|
||||||
|
```
|
||||||
|
|
||||||
|
# Testing Disko
|
||||||
|
Testing disko partitioning is working quite well. Just run the following and check the datasets in the vm:
|
||||||
|
```bash
|
||||||
|
nix run -L .\#nixosConfigurations.fanny.config.system.build.vmWithDisko
|
||||||
|
```
|
||||||
|
|
||||||
|
Only problem is that encryption is not working, so it needs to be commented out. For testing host fanny the following parts in ```./machines/modules/disko/fanny.nix``` need to be commented out(for both pools!):
|
||||||
|
```nix
|
||||||
|
datasets = {
|
||||||
|
encrypted = {
|
||||||
|
options = {
|
||||||
|
encryption = "aes-256-gcm"; #THIS ONE
|
||||||
|
keyformat = "passphrase"; #THIS ONE
|
||||||
|
keylocation = "file:///tmp/root.key"; #THIS ONE
|
||||||
|
};
|
||||||
|
# use this to read the key during boot
|
||||||
|
postCreateHook = '' #THIS ONE
|
||||||
|
zfs set keylocation="prompt" "zroot/$name"; #THIS ONE
|
||||||
|
''; #THIS ONE
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user