mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-24 10:58:44 +08:00
56 lines
1.4 KiB
Nix
56 lines
1.4 KiB
Nix
inputs:
|
|
{
|
|
imports = inputs.localLib.mkModules [ ./vscode.nix ];
|
|
config =
|
|
let
|
|
inherit (inputs.lib) mkIf;
|
|
in mkIf (builtins.elem "desktop" inputs.config.nixos.packages._packageSets)
|
|
{
|
|
nixos =
|
|
{
|
|
packages._packages = with inputs.pkgs;
|
|
[
|
|
# system management
|
|
gparted wl-clipboard-x11 kio-fuse
|
|
wayland-utils clinfo glxinfo vulkan-tools dracut
|
|
# networking
|
|
remmina putty mtr-gui
|
|
# media
|
|
mpv nomacs
|
|
# themes
|
|
tela-circle-icon-theme
|
|
firefoxpwa
|
|
];
|
|
users.sharedModules =
|
|
[{
|
|
config.home.file.".config/baloofilerc".text =
|
|
''
|
|
[Basic Settings]
|
|
Indexing-Enabled=false
|
|
'';
|
|
}];
|
|
};
|
|
programs =
|
|
{
|
|
adb.enable = true;
|
|
wireshark = { enable = true; package = inputs.pkgs.wireshark; };
|
|
firefox =
|
|
{
|
|
enable = true;
|
|
languagePacks = [ "zh-CN" "en-US" ];
|
|
nativeMessagingHosts.packages = [ inputs.pkgs.firefoxpwa ];
|
|
};
|
|
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;
|
|
};
|
|
}
|
|
|