nixos/modules/packages/desktop/default.nix

57 lines
1.5 KiB
Nix
Raw Normal View History

2023-12-05 16:40:40 +08:00
inputs:
{
2024-04-25 15:16:32 +08:00
config = inputs.lib.mkIf (builtins.elem "desktop" inputs.config.nixos.packages._packageSets)
{
nixos =
2023-12-05 16:40:40 +08:00
{
2024-04-25 15:16:32 +08:00
packages._packages = with inputs.pkgs;
[
# system management
2024-05-25 20:27:06 +08:00
gparted wayland-utils clinfo glxinfo vulkan-tools dracut
2024-04-25 15:16:32 +08:00
(
writeShellScriptBin "xclip"
''
#!${bash}/bin/bash
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
exec ${xclip}/bin/xclip -sel clip "$@"
else
exec ${wl-clipboard-x11}/bin/xclip "$@"
fi
''
)
# color management
argyllcms xcalib
# networking
remmina putty mtr-gui
# media
mpv nomacs
# themes
2024-05-28 20:16:21 +08:00
tela-circle-icon-theme localPackages.win11os-kde localPackages.fluent-kde localPackages.blurred-wallpaper
localPackages.slate utterly-nord-plasma
2024-04-25 15:16:32 +08:00
# terminal
2024-05-22 10:44:41 +08:00
warp-terminal
2024-04-25 15:16:32 +08:00
# development
adb-sync
# virtual keyboard
2024-05-25 22:40:18 +08:00
# localPackages.kylin-virtual-keyboard
2024-04-25 15:16:32 +08:00
];
};
programs =
{
adb.enable = true;
wireshark = { enable = true; package = inputs.pkgs.wireshark; };
vim.package = inputs.pkgs.vim-full;
yubikey-touch-detector.enable = true;
};
nixpkgs.config.packageOverrides = pkgs:
{
telegram-desktop = pkgs.telegram-desktop.overrideAttrs (attrs:
2023-12-05 16:40:40 +08:00
{
2024-04-25 15:16:32 +08:00
patches = (if (attrs ? patches) then attrs.patches else []) ++ [ ./telegram.patch ];
});
2023-12-05 16:40:40 +08:00
};
2024-04-25 15:16:32 +08:00
services.pcscd.enable = true;
};
2023-12-05 16:40:40 +08:00
}