mediabox/home: remove unneeded packages

This commit is contained in:
Asmir A 2025-06-08 17:57:44 +02:00
parent a1ca2cf06e
commit 2ea0ef0467
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -1,183 +1,57 @@
{ { lib
lib, , pkgs
pkgs, , ...
inputs,
system,
...
}: }:
let 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" '' chromium_discord = pkgs.writeShellScriptBin "chromium_discord" ''
${lib.getExe pkgs.ungoogled-chromium} --socket=wayland org.chromium.Chromium --app=https://discordapp.com/channels/@me ${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/
'';
nixy_switch = pkgs.writeShellScriptBin "nixy_switch" ''
${pkgs.util-linux}/bin/ionice -c 3 -- \
${pkgs.coreutils}/bin/nice -n 20 -- \
${lib.getExe pkgs.nixos-rebuild} --flake ./#nixy switch
'';
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 in
{ {
home.packages = home.packages =
with pkgs; with pkgs;
[ [
anydesk
appimage-run
arp-scan
birdtray
blackmagic
blender
btop
cached-nix-shell cached-nix-shell
caddy
cargo
cmake
compsize
kdePackages.ark
ungoogled-chromium ungoogled-chromium
# cura
deluge deluge
dfu-util
discord
dmenu-wayland
drawio
dualsensectl dualsensectl
ffmpeg-full ffmpeg-full
firefox firefox
freecad
gcc
gdb
ghostscript
glab
glaxnimate
gnumake
go
grim
heimdall
hyperfine
icestorm
imagemagick
imv imv
inkscape inkscape
jellyfin-media-player jellyfin-media-player
kdePackages.kdenlive
kicad
kodi-wayland kodi-wayland
krita
libnotify libnotify
libreoffice-qt6-fresh libreoffice-qt6-fresh
libva-utils libva-utils
linuxPackages_latest.perf
lsix
lsix
mediainfo
ncdu
neovide
nextpnr
ngspice
nix-init
nixpkgs-fmt nixpkgs-fmt
nix-prefetch-git nix-prefetch-git
nodePackages.peerflix nodePackages.peerflix
nom
openems
openocd
openscad
pandoc pandoc
paraview paraview
pass-wayland pass-wayland
patchelf
pavucontrol pavucontrol
pay-respects pay-respects
pirate-get pirate-get
poppler_utils poppler_utils
powertop
pulsemixer pulsemixer
pwvucontrol pwvucontrol
python3 python3
python3Packages.west
remmina remmina
river
rizin
rtorrent rtorrent
sbcl
screen
seer
sioyek sioyek
slurp
steam-run steam-run
stm32cubemx
swayimg swayimg
tea
teams-for-linux
tectonic
tessen tessen
texlive.combined.scheme-full
thunderbird
typst
upx
viber
waybar
wdisplays wdisplays
weechat
whatsapp-for-linux
wine wine
wireshark
wl-clipboard wl-clipboard
wlr-randr wlr-randr
wofi wofi
x2goclient
yewtube
yosys
yt-dlp yt-dlp
zapzap
zathura zathura
# zeal-qt6
zig
] ]
++ [ ++ [
chromium_discord chromium_discord
chromium_stackfield
chromium_teams
nixy_switch
qcad
ssh_proxy
wrap_sh
]
++ [
inputs.swaysw.packages.${system}.swaysw
(pkgs.callPackage ../../packages/bubblewrap/default.nix { })
]; ];
} }