conflict cleanup with mozilla and thunderbird mount

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-22 20:35:07 +01:00
parent 80fc93efe5
commit aabf260a7f
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -69,6 +69,10 @@ with lib;
partOf = [
"user@${toString cfg.uid}.service"
];
conflicts = [
"home-darkkirb-.mozilla.mount"
"home-darkkirb-.thunderbird.mount"
];
serviceConfig.Type = "oneshot";
script = ''
if [[ -e ${cfg.home} ]]; then
@ -100,11 +104,17 @@ with lib;
{
name = "home-manager-${name}";
value = {
wants = [
"home-darkkirb-.mozilla.mount"
"home-darkkirb-.thunderbird.mount"
];
wantedBy = [
"user@${toString cfg.uid}.service"
];
after = [
"cleanup-home-${name}.service"
"home-darkkirb-.mozilla.mount"
"home-darkkirb-.thunderbird.mount"
];
before = [
"user@${toString cfg.uid}.service"