aboutsummaryrefslogtreecommitdiff
path: root/modules/desktop/xserver.nix
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/desktop/xserver.nix
parenti3: move configuration to home-manager (diff)
downloadinfra-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 'modules/desktop/xserver.nix')
-rw-r--r--modules/desktop/xserver.nix32
1 files changed, 32 insertions, 0 deletions
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;
+}