summaryrefslogtreecommitdiff
path: root/archetypes
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-12-10 21:02:51 -0600
committerTim Keller <tjk@tjkeller.xyz>2025-12-10 21:02:51 -0600
commitfadba8eaed08cde36d7e53e401d78cab80dffec3 (patch)
treed5c8160225ece0555b33195cf07ced4954f9e87f /archetypes
parent4484d67427d620c0cf3e85897c6fc84b4898939a (diff)
downloadnixos-fadba8eaed08cde36d7e53e401d78cab80dffec3.tar.xz
nixos-fadba8eaed08cde36d7e53e401d78cab80dffec3.zip
refactor slightly and cleanup tearfree option enable
Diffstat (limited to 'archetypes')
-rw-r--r--archetypes/collections/desktop/xserver.nix17
1 files changed, 8 insertions, 9 deletions
diff --git a/archetypes/collections/desktop/xserver.nix b/archetypes/collections/desktop/xserver.nix
index 8e01a84..050c9d4 100644
--- a/archetypes/collections/desktop/xserver.nix
+++ b/archetypes/collections/desktop/xserver.nix
@@ -7,9 +7,14 @@ in {
};
config = lib.mkIf cfg.enable {
- services.xserver.enable = true;
- services.xserver.displayManager.startx.enable = true;
- services.libinput.enable = true; # Enable touchpad support
+ services = {
+ xserver = {
+ enable = true;
+ displayManager.startx.enable = true;
+ enableTearFree = true;
+ };
+ libinput.enable = true; # Enable touchpad support
+ };
# Install basic X utilities
environment.systemPackages = with pkgs; lib.optionals cfg.utilities.enable [
@@ -25,11 +30,5 @@ in {
xorg.xset
xwallpaper
];
-
- # Enable TearFree option by default
- # Not all video drivers support this option
- services.xserver.deviceSection = ''
- Option "TearFree" "true"
- '';
};
}