mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-25 05:24:52 +00:00
automatically create lock screen cache if needed
This commit is contained in:
parent
e69dd6a98e
commit
07b00d3e3f
@ -244,6 +244,16 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
# Update lock screen cache only if cache is empty
|
||||
home.activation.updateLockScreenCache =
|
||||
let cacheDir = "/home/${config.user}/.cache/betterlockscreen/current";
|
||||
in config.home-manager.users.${config.user}.lib.dag.entryAfter
|
||||
[ "writeBoundary" ] ''
|
||||
if [ ! -d ${cacheDir} ] || [ -z "$(ls ${cacheDir})" ]; then
|
||||
$DRY_RUN_CMD ${lockUpdate}
|
||||
fi
|
||||
'';
|
||||
|
||||
};
|
||||
|
||||
# Ref: https://github.com/betterlockscreen/betterlockscreen/blob/next/system/betterlockscreen%40.service
|
||||
|
Loading…
Reference in New Issue
Block a user