173 lines
3.5 KiB
Nix
173 lines
3.5 KiB
Nix
{
|
|
lib,
|
|
pkgs,
|
|
inputs,
|
|
system,
|
|
...
|
|
}: let
|
|
chromium_teams = pkgs.writeShellScriptBin "chromium_teams" ''
|
|
${lib.getExe pkgs.ungoogled-chromium} --socket=wayland org.chromium.Chromium --app=https://teams.microsoft.com/
|
|
'';
|
|
chromium_discord = pkgs.writeShellScriptBin "chromium_discord" ''
|
|
${lib.getExe pkgs.ungoogled-chromium} --socket=wayland org.chromium.Chromium --app=https://discordapp.com/channels/@me
|
|
'';
|
|
chromium_stackfield = pkgs.writeShellScriptBin "chromium_stackfield" ''
|
|
${lib.getExe pkgs.ungoogled-chromium} --socket=wayland org.chromium.Chromium --app=https://stackfield.com/
|
|
'';
|
|
qcad = pkgs.writeShellScriptBin "qcad" ''
|
|
QT_QPA_PLATFORM=xcb ${lib.getExe pkgs.qcad} $@
|
|
'';
|
|
ssh_proxy = pkgs.writeShellScriptBin "ssh_proxy" ''
|
|
if ${pkgs.coreutils}/bin/test $# -ne 1; then
|
|
echo "Usage: $0 <user>@<ssh_host>"
|
|
exit
|
|
fi
|
|
PROXY_PORT="1337"
|
|
${lib.getExe pkgs.openssh} -D "$PROXY_PORT" -q -N "$@"
|
|
'';
|
|
wrap_sh = let
|
|
bubblewrap = pkgs.callPackage ../packages/bubblewrap/default.nix {};
|
|
in
|
|
pkgs.writeShellScriptBin "wrap.sh" ''
|
|
if ${pkgs.coreutils-full}/bin/test $# -ne 1; then
|
|
echo "Usage: $0 <directory>"
|
|
exit
|
|
fi
|
|
FULL_PATH=$(${pkgs.coreutils-full}/bin/realpath "$1")
|
|
BUBBLEWRAP_DIR="$1" ${bubblewrap}/bin/bwrap \
|
|
--bind / / \
|
|
--dev /dev \
|
|
--overlay-src "$FULL_PATH" \
|
|
--tmp-overlay "$FULL_PATH" \
|
|
"$SHELL"
|
|
'';
|
|
in {
|
|
home.packages = with pkgs;
|
|
[
|
|
anydesk
|
|
appimage-run
|
|
arp-scan
|
|
birdtray
|
|
blackmagic
|
|
blender
|
|
btop
|
|
cached-nix-shell
|
|
caddy
|
|
cargo
|
|
ungoogled-chromium
|
|
cmake
|
|
compsize
|
|
/*cura*/
|
|
deluge
|
|
dfu-util
|
|
discord
|
|
dmenu-wayland
|
|
drawio
|
|
dualsensectl
|
|
ffmpeg-full
|
|
firefox
|
|
freecad
|
|
gcc
|
|
gdb
|
|
ghostscript
|
|
glab
|
|
glaxnimate
|
|
gnumake
|
|
go
|
|
grim
|
|
heimdall
|
|
hyperfine
|
|
icestorm
|
|
imagemagick
|
|
imv
|
|
inkscape
|
|
jellyfin-media-player
|
|
kdenlive
|
|
kicad
|
|
kodi-wayland
|
|
krita
|
|
libnotify
|
|
libreoffice-qt6-fresh
|
|
libva-utils
|
|
linuxPackages_latest.perf
|
|
lsix
|
|
lsix
|
|
mediainfo
|
|
ncdu
|
|
neovide
|
|
nextpnr
|
|
ngspice
|
|
nix-init
|
|
nixpkgs-fmt
|
|
nix-prefetch-git
|
|
nodePackages.peerflix
|
|
nom
|
|
openems
|
|
openocd
|
|
openscad
|
|
pandoc
|
|
paraview
|
|
pass-wayland
|
|
patchelf
|
|
pavucontrol
|
|
pay-respects
|
|
pirate-get
|
|
poppler_utils
|
|
powertop
|
|
pulsemixer
|
|
pwvucontrol
|
|
python3
|
|
python3Packages.west
|
|
remmina
|
|
river
|
|
rtorrent
|
|
sbcl
|
|
screen
|
|
seer
|
|
sioyek
|
|
skypeforlinux
|
|
slurp
|
|
steam-run
|
|
stm32cubemx
|
|
swayimg
|
|
tea
|
|
teams-for-linux
|
|
tectonic
|
|
tessen
|
|
texlive.combined.scheme-full
|
|
thunderbird
|
|
typst
|
|
upx
|
|
waybar
|
|
wdisplays
|
|
weechat
|
|
whatsapp-for-linux
|
|
wine
|
|
wireshark
|
|
wl-clipboard
|
|
wlr-randr
|
|
wofi
|
|
x2goclient
|
|
yewtube
|
|
yosys
|
|
yt-dlp
|
|
zapzap
|
|
zathura
|
|
/*zeal-qt6*/
|
|
zig
|
|
]
|
|
++ [
|
|
chromium_discord
|
|
chromium_stackfield
|
|
chromium_teams
|
|
ssh_proxy
|
|
wrap_sh
|
|
qcad
|
|
]
|
|
++ [
|
|
inputs.swaysw.packages.${system}.swaysw
|
|
(pkgs.callPackage ../packages/viber/default.nix {})
|
|
(pkgs.callPackage ../packages/bubblewrap/default.nix {})
|
|
];
|
|
}
|