nixos/modules/packages/desktop/default.nix

73 lines
2.3 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
localPackages.win11os-kde localPackages.fluent-kde localPackages.blurred-wallpaper
localPackages.slate utterly-nord-plasma utterly-round-plasma-style catppuccin catppuccin-sddm
catppuccin-cursors catppuccinifier-gui catppuccinifier-cli catppuccin-plymouth
(catppuccin-kde.override { flavour = [ "latte" ]; })
(catppuccin-gtk.override { variant = "latte"; })
(tela-circle-icon-theme.override { allColorVariants = true; })
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 ];
});
kdePackages = prev.kdePackages.overrideScope (final: prev:
{
kwin = prev.kwin.overrideAttrs (prev: { patches = prev.patches ++
[
{
"6.0.5" = inputs.pkgs.fetchurl
{
url = "https://aur.archlinux.org/cgit/aur.git/plain/explicit-sync.patch?h=kwin-explicit-sync"
+ "&id=b6fb7e1b8651365af426cfc7be0d03b9615fdd3a";
sha256 = "1zcksalmkf0mifmv0zl5awy1ch3fvfkkknxqk4mqg0vk1bbpjh2b";
};
}.${prev.version}
]; });
});
})];
2024-04-25 15:16:32 +08:00
services.pcscd.enable = true;
};
2023-12-05 16:40:40 +08:00
}