nix on kil
Some checks failed
/ lint (push) Failing after 32s

This commit is contained in:
Jana Dönszelmann 2026-01-19 19:08:00 +01:00
parent b84f878dbd
commit acd7def6ed
No known key found for this signature in database
28 changed files with 5069 additions and 143 deletions

25
programs/fish/scripts.nix Normal file
View file

@ -0,0 +1,25 @@
{ pkgs, ... }:
{
calc = "${pkgs.custom.pipethon}/bin/python -i ${pkgs.writeText "init.py" ''
import sys
sys.path.append("${../../scriptlib}")
from scriptlib import *
''} ";
# sys.path.append("${pkgs.python314Packages.numpy}/lib/python3.14/site-packages/")
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}";
}