nixos/modules/packages/desktop/default.nix

50 lines
1.3 KiB
Nix
Raw Normal View History

2023-12-05 16:40:40 +08:00
inputs:
{
2023-12-08 13:09:17 +08:00
imports = inputs.localLib.mkModules [ ./vscode.nix ];
2023-12-05 16:40:40 +08:00
config =
let
inherit (inputs.lib) mkIf;
in mkIf (builtins.elem "desktop" inputs.config.nixos.packages._packageSets)
{
nixos =
{
2023-12-08 13:09:17 +08:00
packages._packages = with inputs.pkgs;
[
# system management
2023-12-10 00:07:36 +08:00
gparted wl-clipboard-x11 kio-fuse
wayland-utils clinfo glxinfo vulkan-tools dracut
2023-12-08 13:09:17 +08:00
# networking
remmina putty mtr-gui
# media
mpv nomacs
# themes
tela-circle-icon-theme
];
2023-12-05 16:40:40 +08:00
users.sharedModules =
[{
config.home.file.".config/baloofilerc".text =
''
[Basic Settings]
Indexing-Enabled=false
'';
}];
};
programs =
{
2023-12-10 00:07:36 +08:00
adb.enable = true;
2023-12-05 16:40:40 +08:00
wireshark = { enable = true; package = inputs.pkgs.wireshark; };
firefox = { enable = true; languagePacks = [ "zh-CN" "en-US" ]; };
vim.package = inputs.pkgs.vim-full;
};
nixpkgs.config.packageOverrides = pkgs:
{
telegram-desktop = pkgs.telegram-desktop.overrideAttrs (attrs:
{
patches = (if (attrs ? patches) then attrs.patches else []) ++ [ ./telegram.patch ];
});
};
services.pcscd.enable = true;
};
}