This commit is contained in:
Ingolf Wagner 2022-06-26 09:23:44 +02:00
parent 337346cb63
commit 219b316cef
Signed by: palo
GPG key ID: 76BF5F1928B9618B
2 changed files with 15 additions and 89 deletions

View file

@ -14,7 +14,6 @@ let
in in
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
((ganttproject-bin.override { ((ganttproject-bin.override {
@ -27,7 +26,6 @@ in
}; };
})) }))
(nextcloudSync "InstantUpload") (nextcloudSync "InstantUpload")
(nextcloudSync "Pictures") (nextcloudSync "Pictures")
(nextcloudSync "Unterlagen") (nextcloudSync "Unterlagen")

View file

@ -16,25 +16,15 @@ let
(lib.concatStringsSep "\n" licenses); (lib.concatStringsSep "\n" licenses);
#joplin = pkgs.joplin-desktop; #joplin = pkgs.joplin-desktop;
#joplin = pkgs.joplin-desktop; joplin = pkgs.unstable.joplin-desktop;
joplin = pkgs.writers.writeBashBin "joplin" '' #joplin = pkgs.writers.writeBashBin "joplin" ''
if [[ ! -x "$HOME/programs/Joplin.AppImage" ]] # if [[ ! -x "$HOME/programs/Joplin.AppImage" ]]
then # then
echo "$HOME/programs/Joplin.AppImage does not exist or is not executable"; # echo "$HOME/programs/Joplin.AppImage does not exist or is not executable";
exit 1 # exit 1
fi # fi
exec ${pkgs.appimage-run}/bin/appimage-run "$HOME/programs/Joplin.AppImage" # exec ${pkgs.appimage-run}/bin/appimage-run "$HOME/programs/Joplin.AppImage"
''; #'';
zettlr = pkgs.writers.writeBashBin "zettlr" ''
if [[ ! -x "$HOME/programs/Zettlr.AppImage" ]]
then
echo "$HOME/programs/Zettlr.AppImage does not exist or is not executable";
exit 1
fi
exec ${pkgs.appimage-run}/bin/appimage-run "$HOME/programs/Zettlr.AppImage"
'';
#zettlr = unstablePkgs.zettlr;
parseUrl = pkgs.writers.writeBashBin "parseUrl" '' parseUrl = pkgs.writers.writeBashBin "parseUrl" ''
echo "$@" | \ echo "$@" | \
@ -136,25 +126,6 @@ let
${pkgs.copyq}/bin/copyq read 0 | ${pkgs.xdotool}/bin/xdotool type -f - ${pkgs.copyq}/bin/copyq read 0 | ${pkgs.xdotool}/bin/xdotool type -f -
''; '';
weight = pkgs.writeShellScriptBin "weight" ''
if [[ $# -eq 1 ]]
then
weight=$1
echo "weight : $weight"
else
echo
echo -n " weight : "
read weight
fi
echo
${pkgs.curl}/bin/curl \
-H "Content-Type: application/json" \
-XPOST "http://workout.private:9200/health/weight" \
-d '{ "weight" : '$weight', "date": "'$( ${pkgs.coreutils}/bin/date -Iseconds )'" }'
'';
isoToUtf8 = pkgs.writers.writeBashBin "iso-to-utf8" '' isoToUtf8 = pkgs.writers.writeBashBin "iso-to-utf8" ''
input="$1" input="$1"
TMP=$(mktemp) TMP=$(mktemp)
@ -175,34 +146,13 @@ in
programs.gnupg.agent.enableExtraSocket = true; programs.gnupg.agent.enableExtraSocket = true;
environment.systemPackages = with pkgs; environment.systemPackages = with pkgs;
let
connectToMyPortable = connectToSpeaker "my-portable" "37:F0:17:2F:B6:84";
disconnectToMyPortable =
disconnectToSpeaker "my-portable" "37:F0:17:2F:B6:84";
connectToBrullrohre = connectToSpeaker "brullrohre" "FC:A8:9A:ED:B8:FA";
disconnectToBrullrohre =
disconnectToSpeaker "brullrohre" "FC:A8:9A:ED:B8:FA";
in
[ [
uget uget
#zettlr
#(library.desktopFile zettlr { longName = "Zettlr"; })
joplin joplin
(library.desktopFile joplin { longName = "Joplin"; }) (library.desktopFile joplin { longName = "Joplin"; })
zim zim
weight
connectToMyPortable
(library.desktopFile connectToMyPortable { longName = "Bluetooth"; })
disconnectToMyPortable
(library.desktopFile disconnectToMyPortable { longName = "Bluetooth"; })
connectToBrullrohre
(library.desktopFile connectToBrullrohre { longName = "Bluetooth"; })
disconnectToBrullrohre
(library.desktopFile disconnectToBrullrohre { longName = "Bluetooth"; })
#antimony #antimony
#(library.desktopFile antimony { longName = "CAD Software"; command = "antimony"; }) #(library.desktopFile antimony { longName = "CAD Software"; command = "antimony"; })
parted parted
@ -285,18 +235,7 @@ in
# cantata # cantata
ncmpcpp ncmpcpp
#(pkgs.dragon-drop.overrideAttrs (old: rec { # dino # jabber client
# pname = "dragon-drop";
# version = "1.1.1";
# src = fetchFromGitHub {
# owner = "mwh";
# repo = "dragon";
# rev = "v${version}";
# sha256 = "0fgzz39007fdjwq72scp0qygp2v3zc5f1xkm0sxaa8zxm25g1bra";
# };
#}))
dino # jabber client
nixos-generators nixos-generators
shellcheck shellcheck
@ -346,7 +285,6 @@ in
nethogs nethogs
netsniff-ng netsniff-ng
iftop iftop
#wireguard
ffmpeg ffmpeg
(writeShellScriptBin "shrink-exports" (writeShellScriptBin "shrink-exports"
@ -357,12 +295,11 @@ in
replaceLinks replaceLinks
youtube-dl youtube-dl
#image-generator #cairo
cairo
w3m #w3m
links2 #links2
lynx #lynx
# temperature # temperature
s-tui s-tui
@ -393,17 +330,8 @@ in
pkgconf pkgconf
cairo cairo
# etc-info stuff
(pkgs.writers.writeDashBin "etc-info-sync" (lib.concatStringsSep "\n"
(map (host: "rsync -avLz ${host}.private:/etc/info/ ~/.etc_info")
(attrNames config.module.cluster.services.tinc."private".hosts))))
] ++ (map pandocScript (lib.cartesianProductOfSets { ] ++ (map pandocScript (lib.cartesianProductOfSets {
inputFormat = [ "man" "markdown" "mediawiki" ]; inputFormat = [ "man" "markdown" "mediawiki" ];
outputFormat = [ "mediawiki" "docbook5" "html5" "man" ]; outputFormat = [ "mediawiki" "docbook5" "html5" "man" ];
})) # ++ (map (search: }));
#pkgs.writers.writeDashBin "reddit-${search}" ''
# ${unstablePkgs.tuir}/bin/tuir -s ${search} "$@"
#'') [ "nixos" "systemdUltras" "terraform" ])
;
} }