mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: add automatic zfs persistent dataset management to microvms
This commit is contained in:
parent
2b4449569f
commit
70f7ef3023
5 changed files with 166 additions and 91 deletions
|
@ -35,6 +35,7 @@
|
|||
"local/nix" = filesystem "/nix";
|
||||
"safe" = unmountable;
|
||||
"safe/persist" = filesystem "/persist";
|
||||
"safe/vms" = unmountable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -42,10 +43,6 @@
|
|||
|
||||
fileSystems."/persist".neededForBoot = true;
|
||||
|
||||
#environment.persistence."/persist".directories = [
|
||||
# { directory = "/var/lib/acme"; user = "acme"; group = "acme"; }
|
||||
#];
|
||||
|
||||
# After importing the rpool, rollback the root system to be empty.
|
||||
boot.initrd.systemd.services = {
|
||||
impermanence-root = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue