mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
65 lines
1.6 KiB
Nix
65 lines
1.6 KiB
Nix
{ pkgs, config, ... }:
|
|
let
|
|
legacy = (config.system.nixos.release == "20.09");
|
|
in
|
|
{
|
|
environment.systemPackages = with pkgs; [
|
|
brave
|
|
gimp
|
|
ffmpeg
|
|
mpv
|
|
tdesktop
|
|
element-desktop
|
|
pavucontrol
|
|
gnome3.dconf-editor
|
|
glxinfo
|
|
steam-run
|
|
|
|
(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 {
|
|
forceWayland = true;
|
|
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"; };
|
|
"network.IDN_show_punycode" = { Status = "locked"; Value = true; };
|
|
"browser.zoom.siteSpecific" = { Status = "locked"; Value = false; };
|
|
};
|
|
};
|
|
})
|
|
|
|
];
|
|
|
|
services.xserver.deviceSection = ''
|
|
Option "VariableRefresh" "true"
|
|
'';
|
|
|
|
programs.steam.enable = true;
|
|
|
|
virtualisation.docker = { enable = true; enableOnBoot = false; };
|
|
|
|
hardware.pulseaudio.enable = legacy;
|
|
services.pipewire = if legacy then { } else {
|
|
enable = true;
|
|
pulse.enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
};
|
|
|
|
boot.loader.timeout = null;
|
|
}
|