.dotfiles/dot_config/flake/home/home-backup.nix

24 lines
396 B
Nix

{
# inputs,
# outputs,
# lib,
config,
# pkgs,
...
}: {
systemd.user.services = {
daily_backup = {
Unit = {
Description = "Run a backup script";
};
Install = {
WantedBy = ["default.target"];
};
Service = {
Type = "oneshot";
ExecStart = "${config.home.homeDirectory}/.local/bin/,daily_backup";
};
};
};
}