fix typo
Some checks failed
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #22957 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #22955 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #22956 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.not522 Hydra build #22958 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.not522-installer Hydra build #22959 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra checks.x86_64-linux.containers-default Hydra build #22954 of nixos-config:pr618:checks.x86_64-linux.containers-default

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-02 14:47:17 +01:00
parent a8fc718b04
commit 27fdd3d27c

View file

@ -31,7 +31,7 @@ with lib; {
script = ''
if [[ -e ${cfg.home} ]]; then
timestamp=$(date --date="@$(stat -c %X ${cfg.home})" "+%Y-%m-%d_%H:%M:%S")
mkdir - p /persistent/old-homedirs/${name}
mkdir -p /persistent/old-homedirs/${name}
mv ${cfg.home} /home/old-homedirs/${name}/$timestamp
fi