nixos-config/nixos/shared/graphical.nix

49 lines
966 B
Nix

system: config: { pkgs, ... }:
{
# [DESKTOP / XORG / WAYLAND]
services.libinput = {
enable = true;
touchpad = {
naturalScrolling = true;
accelProfile = "flat" ;
tapping = false;
};
};
services.xserver = {
enable = true;
displayManager.startx.enable = true;
};
services.desktopManager.plasma6.enable = true;
programs.slock.enable = config.i3-plasma;
# [SOUND]
sound.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa = {
enable = true;
support32Bit = true;
};
pulse.enable = true;
jack.enable = true;
wireplumber.enable = true;
};
programs.virt-manager.enable = true;
virtualisation.libvirtd.enable = true;
programs.gamemode = {
enable = config.steam;
settings.general.renice = 20;
};
programs.steam.enable = config.steam;
nixpkgs.config.allowUnfree = true;
hardware.logitech.wireless.enable = true;
}