nixos-config/modules/graphical.nix
2020-12-21 01:00:30 -05:00

63 lines
1.5 KiB
Nix

{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
brave
gimp
mpv
libreoffice
tdesktop
pavucontrol
gnome3.dconf-editor
glxinfo
steam-run
discord
(vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = with pkgs.vscode-extensions; [
bbenoist.Nix
ms-python.python
ms-vscode.cpptools
ms-azuretools.vscode-docker
];
})
(wrapFirefox firefox-unwrapped {
extraPolicies = {
CaptivePortal = false;
DisablePocket = true;
DisableFirefoxStudies = true;
OfferToSaveLogins = false;
DisableFormHistory = true;
SearchSuggestEnabled = false;
EnableTrackingProtection = {
Value = true;
Locked = true;
Cryptomining = true;
Fingerprinting = true;
};
Preferences = {
"extensions.formautofill.available" = { Status = "locked"; Value = "off"; };
"network.cookie.cookieBehavior" = { Status = "locked"; Value = 4; };
"network.IDN_show_punycode" = { Status = "locked"; Value = true; };
};
};
})
];
services.xserver.deviceSection = ''
Option "VariableRefresh" "true"
'';
services.xserver.displayManager.sessionCommands = ''
${pkgs.xorg.xmodmap}/bin/xmodmap -e "remove Lock = Caps_Lock"
${pkgs.xorg.xmodmap}/bin/xmodmap -e "keysym Caps_Lock = F13"
'';
programs.steam.enable = true;
hardware.pulseaudio.enable = true;
boot.loader.timeout = null;
}