nixos-config/modules/graphical.nix

64 lines
1.6 KiB
Nix
Raw Normal View History

2021-04-30 18:32:27 +00:00
{ pkgs, config, ... }:
let
legacy = (config.system.nixos.release == "20.09");
in
2020-09-18 13:54:09 +00:00
{
2020-09-24 05:45:48 +00:00
environment.systemPackages = with pkgs; [
brave
gimp
2021-05-10 15:34:37 +00:00
ffmpeg
2020-09-24 05:45:48 +00:00
mpv
tdesktop
pavucontrol
gnome3.dconf-editor
glxinfo
steam-run
2020-09-18 13:54:09 +00:00
2020-09-24 05:45:48 +00:00
(vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = with pkgs.vscode-extensions; [
bbenoist.Nix
ms-python.python
ms-vscode.cpptools
ms-azuretools.vscode-docker
];
})
2020-09-18 13:54:09 +00:00
2020-12-21 06:00:30 +00:00
(wrapFirefox firefox-unwrapped {
2021-03-25 15:23:03 +00:00
forceWayland = true;
2020-12-21 06:00:30 +00:00
extraPolicies = {
CaptivePortal = false;
DisablePocket = true;
DisableFirefoxStudies = true;
OfferToSaveLogins = false;
DisableFormHistory = true;
SearchSuggestEnabled = false;
Preferences = {
2021-04-25 04:19:09 +00:00
"dom.security.https_only_mode" = { Status = "locked"; Value = true; };
2020-12-21 06:00:30 +00:00
"extensions.formautofill.available" = { Status = "locked"; Value = "off"; };
"browser.contentblocking.category" = { Status = "locked"; Value = "strict"; };
2020-12-21 06:00:30 +00:00
"network.IDN_show_punycode" = { Status = "locked"; Value = true; };
2021-01-11 04:44:03 +00:00
"browser.zoom.siteSpecific" = { Status = "locked"; Value = false; };
2020-12-21 06:00:30 +00:00
};
};
})
2020-09-24 05:45:48 +00:00
];
2020-09-18 13:54:09 +00:00
2020-09-24 05:45:48 +00:00
services.xserver.deviceSection = ''
Option "VariableRefresh" "true"
'';
2020-09-18 13:54:09 +00:00
programs.steam.enable = true;
2020-10-29 18:23:12 +00:00
2021-04-30 18:32:27 +00:00
hardware.pulseaudio.enable = legacy;
services.pipewire = if legacy then { } else {
enable = true;
pulse.enable = true;
alsa.enable = true;
alsa.support32Bit = true;
};
2020-09-18 13:54:09 +00:00
2020-09-24 05:45:48 +00:00
boot.loader.timeout = null;
2020-09-18 13:54:09 +00:00
}