about summary refs log tree commit diff
path: root/modules/desktop
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-08 09:31:18 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-08 09:31:18 -0800
commitb01d6771164f64362a27188cd3a0b10fbce1a6c5 (patch)
tree3a66419d257e512375fd8198167b956889fbb0b8 /modules/desktop
parentsystems: drop nix.settings (diff)
downloadworld-b01d6771164f64362a27188cd3a0b10fbce1a6c5.tar.gz
xserver: initial configuration
Enable it for the desktop.
Diffstat (limited to 'modules/desktop')
-rw-r--r--modules/desktop/default.nix1
-rw-r--r--modules/desktop/xserver.nix24
2 files changed, 25 insertions, 0 deletions
diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix
index be7eaaf..d62c75d 100644
--- a/modules/desktop/default.nix
+++ b/modules/desktop/default.nix
@@ -1,6 +1,7 @@
 {lib, config, pkgs, ...}:
 {
   imports = [
+    ./desktop.nix
     ./fonts.nix
   ];
 }
diff --git a/modules/desktop/xserver.nix b/modules/desktop/xserver.nix
new file mode 100644
index 0000000..3ae324c
--- /dev/null
+++ b/modules/desktop/xserver.nix
@@ -0,0 +1,24 @@
+{ pkgs, config, lib, ... }:
+
+{
+  # Enable the X11 windowing system.
+  services.xserver = {
+    enable = true;
+    layout = "us";
+    xkbOptions = "eurosign:e";
+
+    desktopManager = {
+      xterm.enable = false;
+    };
+
+    displayManager = {
+      defaultSession = "none+i3";
+      lightdm.enable = true;
+    };
+
+    windowManager = {
+      default = "i3";
+      i3.enable = true;
+    };
+  };
+}