home(gyroflow): add enable check to persist

This commit is contained in:
514fpv 2024-01-11 13:26:49 +08:00
parent 4b869893bc
commit 755922f6f3
Signed by: koishi
SSH key fingerprint: SHA256:2jRvFSzG5UeUlQ3WxZ2sbUOfo5wNKzv1fZsk/FexKjQ

View file

@ -14,6 +14,6 @@ in {
{ passthrough.gyroflow = cfg; }
];
users.home.persist.directories = [ ".config/Gyroflow" ];
users.home.persist.directories = mkIf cfg.enable [ ".config/Gyroflow" ];
};
}