Add more logic to disabling impermanence

This commit is contained in:
Jimbo 2025-02-25 00:07:23 -05:00
parent 9a8d1851db
commit c083874930
3 changed files with 5 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{ config, ... }:
{
boot.initrd.systemd.services.root-reset = {
enable = true;
enable = config.environment.persistence."/persist".enable;
description = "Create new and snapshot previous root";
wantedBy = [ "initrd.target" ];
before = [ "sysroot.mount" ];