mirror of
https://github.com/bdnugget/nix-config.git
synced 2026-11-07 09:07:27 +00:00
377 B
377 B
mutable dotfile
Copy file under XDG_CONFIG_HOME that needs to be writable by X application.
{
home.activation.writableFile = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
if [[ ! -e $XDG_CONFIG_HOME/secrets/writable-file ]]; then
$DRY_RUN_CMD install $VERBOSE_ARG -Dm644 ${../file-to-copy} "$XDG_CONFIG_HOME/secrets/writable-file"
fi
'';
}