summaryrefslogtreecommitdiff
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
parentdeaeb8fbac9ba7bfbc9fa9341c64840433415e14 (diff)
downloaduser-config-cd08dfe01827a78a7c77e2ced392ac0318c7f4a7.tar.gz
user-config-cd08dfe01827a78a7c77e2ced392ac0318c7f4a7.zip
kusanagi: fix tearing, and other things
-rw-r--r--nixos/kusanagi.nix13
-rw-r--r--nixpkgs/icewm.nix3
2 files changed, 15 insertions, 1 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";
diff --git a/nixpkgs/icewm.nix b/nixpkgs/icewm.nix
index 192aeb0..6897ca0 100644
--- a/nixpkgs/icewm.nix
+++ b/nixpkgs/icewm.nix
@@ -7,10 +7,11 @@
".config/sx/sxrc".executable = true;
".config/sx/sxrc".text = ''
${pkgs.xorg.xsetroot}/bin/xsetroot -solid "#008080"
+ ${pkgs.xorg.xkbcomp}/bin/xkbcomp ${../xkb/symbols/custom-fr} $DISPLAY
xset s off
xset -dpms
pcmanfm -d &
- pcmanfm --desktop &
+ #pcmanfm --desktop &
nm-applet &
icewm-session
'';