about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-08 17:28:55 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-08 17:28:55 -0800
commit3f9f7e7db43b826b97a7d3bc0da38a6e25db65f9 (patch)
tree482e960b7e644212c270e68c1266b7fce1cfd2c1 /modules
parenti3: move configuration to home-manager (diff)
downloadworld-3f9f7e7db43b826b97a7d3bc0da38a6e25db65f9.tar.gz
i3: separate configuration for xserver and i3
Let's first configure the xserver in the desktop module, then we can
have a configuration for i3 in the home-manager.
Diffstat (limited to '')
-rw-r--r--modules/desktop/default.nix1
-rw-r--r--modules/desktop/xserver.nix32
2 files changed, 33 insertions, 0 deletions
diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix
index b2d2101..f150066 100644
--- a/modules/desktop/default.nix
+++ b/modules/desktop/default.nix
@@ -3,5 +3,6 @@
   imports = [
     ./fonts.nix
     ./sound.nix
+    ./xserver.nix
   ];
 }
diff --git a/modules/desktop/xserver.nix b/modules/desktop/xserver.nix
new file mode 100644
index 0000000..ba19c1a
--- /dev/null
+++ b/modules/desktop/xserver.nix
@@ -0,0 +1,32 @@
+{ config, pkgs, lib, ... }:
+
+{
+  services.xserver = {
+    enable = true;
+    layout = "us";
+    xkbOptions = "eurosign:e";
+    libinput.enable = true;
+
+    desktopManager = {
+      xterm.enable = false;
+    };
+
+    displayManager = {
+      lightdm.enable = true;
+      defaultSession = "none+i3";
+    };
+
+    windowManager = {
+      i3.enable = true;
+      extraPackages = with pkgs; [
+        rofi
+        i3status
+        i3lock
+        alacritty
+      ];
+    };
+  };
+
+  services.gnome.gnome-keyring.enable = true;
+  services.gvfs.enable = true;
+}