use user@uid.service and not user-uid.slice
All checks were successful
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #23206 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #23204 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra checks.x86_64-linux.containers-default Hydra build #23203 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #23205 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.not522 Hydra build #23207 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.not522-installer Hydra build #23208 of nixos-config:pr618:nixosConfigurations.not522-installer

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-03 08:21:43 +01:00
parent 27fdd3d27c
commit 047a3a4bac

View file

@ -21,10 +21,10 @@ with lib; {
description = "Clean home directory for ${name}";
value = {
wantedBy = [
"user-${toString cfg.uid}.slice"
"user@${toString cfg.uid}.service"
];
before = [
"user-${toString cfg.uid}.slice"
"user@${toString cfg.uid}.service"
"home-manager-${name}.service"
];
serviceConfig.Type = "oneshot";
@ -55,13 +55,13 @@ with lib; {
name = "home-manager-${name}";
value = {
wantedBy = mkForce [
"user-${toString cfg.uid}.slice"
"user@${toString cfg.uid}.service"
];
after = [
"cleanup-home-${name}.service"
];
before = [
"user-${toString cfg.uid}.slice"
"user@${toString cfg.uid}.service"
];
};
}