fix(aquamarine): persist the user's unit directories (#464)

Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-10-16 21:08:41 +08:00
1 parent a0ff9f7fd7
commit afa7a4c72e
3 files changed
+26 -1

No files matched your search

@@ -8,6 +8,7 @@
cStatesCapped = true;
nativeIpv6Preference = true;
sourceCheckoutsPersistent = true;
userUnitDirsPersistent = true;
rootlessPodmanEnabled = true;
stableKernel = true;
btopShowsRadeon = true;
@@ -36,6 +36,16 @@ in
sourceCheckoutsPersistent = builtins.any (
d: d.directory == "/home/${myvars.username}/src"
) cfg.preservation.preserveAt."/persistent".users.${myvars.username}.directories;
# Directories the tmpfs root would otherwise drop.
userUnitDirsPersistent =
let
dirs = cfg.preservation.preserveAt."/persistent".users.${myvars.username}.directories;
in
builtins.all (path: builtins.any (d: d.directory == "/home/${myvars.username}/${path}") dirs) [
".config/systemd/user"
".config/containers/systemd"
];
rootlessPodmanEnabled = cfg.virtualisation.podman.enable;
# A server tracks the nixpkgs default (stable/LTS) kernel, not `-latest`.