Add impermanence setup to SIIT-DC
This commit is contained in:
parent
9c4a0ea9b5
commit
bfd56dd547
3 changed files with 96 additions and 1 deletions
15
shared/hardware/impermanence.nix
Normal file
15
shared/hardware/impermanence.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
services.zfs = {
|
||||
autoScrub.enable = true;
|
||||
autoSnapshot = {
|
||||
enable = true;
|
||||
flags = "-k -p --utc";
|
||||
};
|
||||
};
|
||||
|
||||
boot.initrd.postResumeCommands = lib.mkAfter ''
|
||||
zfs rollback -r zroot/root@blank
|
||||
zfs rollback -r zroot/home@blank
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue