62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.passthrough.util;
|
|
in
|
|
{
|
|
home.packages =
|
|
with pkgs;
|
|
[
|
|
pv
|
|
file
|
|
wget
|
|
e2fsprogs
|
|
]
|
|
++ optionals (!cfg.minimal) [
|
|
tio
|
|
mbuffer
|
|
sedutil
|
|
lsscsi
|
|
zip
|
|
unzip
|
|
nix-index
|
|
dnsutils
|
|
whois
|
|
pciutils
|
|
usbutils
|
|
nvme-cli
|
|
]
|
|
++ optionals config.passthrough.gui [
|
|
gtk-engine-murrine
|
|
gnome-themes-extra
|
|
|
|
mission-planner
|
|
inav-configurator
|
|
inav-blackbox-tools
|
|
(blhelisuite32.override { workdir = "${config.home.homeDirectory}/.blhelisuite32"; })
|
|
]
|
|
++ optionals (config.passthrough.gui && !config.passthrough.flatpak.enable) [
|
|
xfce.thunar
|
|
gimp
|
|
jellyfin-media-player
|
|
betaflight-configurator
|
|
expresslrs-configurator
|
|
];
|
|
|
|
wayland.windowManager.sway.config.window.commands = mkIf config.passthrough.gui [
|
|
{
|
|
criteria.class = "BLHeliSuite32xl";
|
|
command = "floating enable";
|
|
}
|
|
{
|
|
criteria.app_id = "thunar";
|
|
command = "floating enable";
|
|
}
|
|
];
|
|
}
|