nixos-config/modules/graphical.nix

66 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
2021-05-19 00:59:24 +00:00
element-desktop
2020-09-24 05:45:48 +00:00
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 = {
"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-05-25 21:24:41 +00:00
virtualisation.docker = { enable = true; enableOnBoot = false; };
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
}