Reformat the aliases

This commit is contained in:
Andreas Zweili 2022-08-23 20:13:31 +02:00
parent 601c458703
commit 0318bc3818

View File

@ -43,34 +43,31 @@ in
--keep-yearly 75 \ --keep-yearly 75 \
''; '';
}; };
environment.shellAliases = { environment.shellAliases = {
restic-list = '' restic-list = ''
restic \ restic \
--repo ${repository} \ --repo ${repository} \
--password-file ${password_file} \ --password-file ${password_file} \
snapshots --host ${config.networking.hostName} snapshots --host ${config.networking.hostName}'';
'';
restic-unlock = '' restic-unlock = ''
restic \ restic \
--repo ${repository} \ --repo ${repository} \
--password-file ${password_file} \ --password-file ${password_file} \
unlock unlock'';
'';
restic-mount = '' restic-mount = ''
mkdir -p /tmp/restic && \ mkdir -p /tmp/restic && \
restic \ restic \
--repo ${repository} \ --repo ${repository} \
--password-file ${password_file} \ --password-file ${password_file} \
--host ${config.networking.hostName} \ --host ${config.networking.hostName} \
mount /tmp/restic mount /tmp/restic'';
'';
restic-mount-all = '' restic-mount-all = ''
mkdir -p /tmp/restic && \ mkdir -p /tmp/restic && \
restic \ restic \
--repo ${repository} \ --repo ${repository} \
--password-file ${password_file} \ --password-file ${password_file} \
mount /tmp/restic mount /tmp/restic'';
'';
restic-forget = '' restic-forget = ''
restic \ restic \
--repo ${repository} \ --repo ${repository} \