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
|
2024-01-03 22:46:08 +08:00
|
|
|
firefoxpwa
|
2023-12-08 13:09:17 +08:00
|
|
|
];
|
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; };
|
2024-01-03 22:46:08 +08:00
|
|
|
firefox =
|
|
|
|
{
|
|
|
|
enable = true;
|
|
|
|
languagePacks = [ "zh-CN" "en-US" ];
|
|
|
|
nativeMessagingHosts.packages = [ inputs.pkgs.firefoxpwa ];
|
|
|
|
};
|
2023-12-05 16:40:40 +08:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|