Move wiki-pull to a zsh alias, remove from

...PW05CH3L
This commit is contained in:
Oliver Davies 2025-05-06 19:51:38 +01:00
parent 6c782845a3
commit f3713050cb
5 changed files with 27 additions and 88 deletions

View file

@ -5,8 +5,6 @@
../common
../../users/opdavies.nix
./modules/wiki.nix
];
cli = {

View file

@ -1,37 +0,0 @@
{ lib, ... }:
with lib;
{
home-manager.users.opdavies =
{ config, pkgs, ... }:
{
home =
let
remoteIpAddress = "192.168.1.111";
wikiPath = "${config.xdg.userDirs.documents}/wiki";
in
{
packages = [
(pkgs.writeShellApplication {
name = "wiki-pull";
text = ''
${getExe pkgs.rsync} -avz --update \
--exclude result \
${remoteIpAddress}:${wikiPath}/ ${wikiPath} "$@"
'';
})
(pkgs.writeShellApplication {
name = "wiki-push";
text = ''
${getExe pkgs.rsync} -avz --update \
${wikiPath}/ ${remoteIpAddress}:${wikiPath} "$@"
'';
})
];
};
};
}