summaryrefslogtreecommitdiffstats
path: root/nixos/modules/xserver.nix
diff options
context:
space:
mode:
authorAndrey01892024-04-17 05:52:14 +0500
committerAndrey01892024-04-17 05:52:14 +0500
commitb51f9bc1014ce350abe73f2c419e0bf6512194c2 (patch)
tree404799cc86717de0a7115bbcec32ce0d8851241b /nixos/modules/xserver.nix
downloadnixos-config-b51f9bc1014ce350abe73f2c419e0bf6512194c2.tar.gz
nixos-config-b51f9bc1014ce350abe73f2c419e0bf6512194c2.tar.bz2
nixos-config-b51f9bc1014ce350abe73f2c419e0bf6512194c2.zip
Initial commit
Diffstat (limited to 'nixos/modules/xserver.nix')
-rw-r--r--nixos/modules/xserver.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nixos/modules/xserver.nix b/nixos/modules/xserver.nix
new file mode 100644
index 0000000..9011cc2
--- /dev/null
+++ b/nixos/modules/xserver.nix
@@ -0,0 +1,26 @@
+{
+ services.xserver = {
+ enable = true;
+ windowManager.herbstluftwm.enable = true;
+
+ # displayManager = {
+ # autoLogin.enable = true;
+ # autoLogin.user = "amper";
+ # lightdm.enable = true;
+ # };
+
+ layout = "us";
+ xkbVariant = "";
+
+ libinput = {
+ enable = true;
+ mouse.accelProfile = "flat";
+ touchpad.accelProfile = "flat";
+ };
+
+ videoDrivers = [ "amdgpu" ];
+ deviceSection = ''Option "TearFree" "True"'';
+ #displayManager.gdm.enable = true;
+ #desktopManager.gnome.enable = true;
+ };
+}