2023-12-05 16:40:40 +08:00
|
|
|
inputs:
|
|
|
|
{
|
2024-02-09 22:05:24 +08:00
|
|
|
imports = inputs.localLib.mkModules [ ./vscode.nix ./firefox.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
|
2024-02-01 09:56:30 +08:00
|
|
|
gparted kio-fuse wayland-utils clinfo glxinfo vulkan-tools dracut
|
|
|
|
(
|
|
|
|
writeShellScriptBin "xclip"
|
|
|
|
''
|
|
|
|
#!${bash}/bin/bash
|
|
|
|
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
|
|
|
|
exec ${xclip}/bin/xclip "$@"
|
|
|
|
else
|
|
|
|
exec ${wl-clipboard-x11}/bin/xclip "$@"
|
|
|
|
fi
|
|
|
|
''
|
|
|
|
)
|
2024-01-22 10:50:36 +08:00
|
|
|
# color management
|
|
|
|
argyllcms xcalib
|
2023-12-08 13:09:17 +08:00
|
|
|
# networking
|
|
|
|
remmina putty mtr-gui
|
|
|
|
# media
|
|
|
|
mpv nomacs
|
|
|
|
# themes
|
2024-02-11 16:45:51 +08:00
|
|
|
tela-circle-icon-theme localPackages.win11os-kde localPackages.fluent-kde localPackages.blurred-wallpaper
|
2024-02-11 23:39:25 +08:00
|
|
|
localPackages.slate utterly-nord-plasma
|
2023-12-08 13:09:17 +08:00
|
|
|
];
|
2023-12-05 16:40:40 +08:00
|
|
|
users.sharedModules =
|
2024-02-09 14:59:33 +08:00
|
|
|
[(homeInputs: {
|
|
|
|
config.home.file = mkIf (!homeInputs.config.programs.plasma.enable)
|
|
|
|
{
|
|
|
|
".config/baloofilerc".text =
|
|
|
|
''
|
|
|
|
[Basic Settings]
|
|
|
|
Indexing-Enabled=false
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
})];
|
2023-12-05 16:40:40 +08:00
|
|
|
};
|
|
|
|
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; };
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|