jj, fish, better kanata, etc
This commit is contained in:
parent
52b1728e2e
commit
d030ebe744
17 changed files with 1642 additions and 938 deletions
|
|
@ -1,22 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
calc = "${pkgs.python313}/bin/python -i ${
|
||||
pkgs.writeText "init.py" ''
|
||||
from math import *;
|
||||
# import numpy as np
|
||||
''
|
||||
} ";
|
||||
cp-media = name: media:
|
||||
let
|
||||
s = pkgs.writeScriptBin "cp-${name}" ''
|
||||
echo "copying to library ${media}"
|
||||
echo "calculating hash"
|
||||
find "$1" - type f - print0 | sort - z | xargs - 0 sha1sum | awk '{
|
||||
print $1}' | sha1sum | awk '{print $1}' > "$1.hash"
|
||||
|
||||
rsync -azP "$1" fili:/media/${media}
|
||||
rsync -azP "$1.hash" fili:/media/${media}
|
||||
'';
|
||||
in
|
||||
"${s}/bin/cp-${name}";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue