nixos/modules/packages/desktop/default.nix

56 lines
1.6 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
catppuccin catppuccin-sddm catppuccin-cursors catppuccinifier-gui catppuccinifier-cli catppuccin-plymouth
(catppuccin-kde.override { flavour = [ "latte" ]; }) (catppuccin-kvantum.override { variant = "latte"; })
2024-06-26 15:11:48 +08:00
localPackages.slate localPackages.blurred-wallpaper tela-circle-icon-theme
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
2024-06-01 00:50:36 +08:00
# desktop sharing
rustdesk-flutter
2024-04-25 15:16:32 +08:00
];
};
programs =
{
adb.enable = true;
wireshark = { enable = true; package = inputs.pkgs.wireshark; };
yubikey-touch-detector.enable = true;
};
nixpkgs.overlays = [(final: prev:
2024-04-25 15:16:32 +08:00
{
telegram-desktop = prev.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 ];
});
})];
2024-04-25 15:16:32 +08:00
services.pcscd.enable = true;
};
2023-12-05 16:40:40 +08:00
}