From cd08dfe01827a78a7c77e2ced392ac0318c7f4a7 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 20 Sep 2023 19:30:06 +0200 Subject: kusanagi: fix tearing, and other things --- nixos/kusanagi.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'nixos') diff --git a/nixos/kusanagi.nix b/nixos/kusanagi.nix index 1012415..9d5a651 100644 --- a/nixos/kusanagi.nix +++ b/nixos/kusanagi.nix @@ -97,6 +97,7 @@ in users.mutableUsers = false; users.users.lx.passwordFile = "/Z/lx/.password"; users.users.lx.uid = 1000; + users.users.lx.extraGroups = [ "vboxusers" ]; # ---- no persistent home, use home manager to set everything up ---- @@ -113,6 +114,14 @@ in nix.gc.automatic = false; + # ---- improve graphics ---- + + services.xserver.videoDrivers = [ "intel" ]; + services.xserver.deviceSection = '' + Option "DRI" "2" + Option "TearFree" "true" + ''; + # ---- printing ---- services.printing.enable = true; @@ -121,6 +130,10 @@ in services.avahi.nssmdns = true; services.avahi.openFirewall = true; + # ---- other + + virtualisation.virtualbox.host.enable = true; + # ---- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; -- cgit v1.2.3