summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-09-20 19:30:06 +0200
committerAlex Auvolat <alex@adnab.me>2023-09-20 19:30:06 +0200
commitcd08dfe01827a78a7c77e2ced392ac0318c7f4a7 (patch)
tree9eaef0634851327bf59708a1bbcaeb3282e4bf05 /nixos
parentdeaeb8fbac9ba7bfbc9fa9341c64840433415e14 (diff)
downloaduser-config-cd08dfe01827a78a7c77e2ced392ac0318c7f4a7.tar.gz
user-config-cd08dfe01827a78a7c77e2ced392ac0318c7f4a7.zip
kusanagi: fix tearing, and other things
Diffstat (limited to 'nixos')
-rw-r--r--nixos/kusanagi.nix13
1 files changed, 13 insertions, 0 deletions
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";