idiosyn/nixos/module/graphical.nix

22 lines
443 B
Nix
Raw Normal View History

2024-08-18 13:47:18 +02:00
{ ... }: { config, lib, pkgs, ... }: {
boot.kernel.sysctl = {
"kernel.sysrq" = lib.mkDefault "0x1f4";
"kernel.unprivileged_userns_clone" = lib.mkDefault 1;
};
environment.pathsToLink = [
"/share/applications"
"/share/xdg-desktop-portal"
];
hardware.graphics.enable = true;
security.polkit.enable = true;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
pulse.enable = true;
};
}