From 1a3486d77574c06b395ab6cda41084f5ed24a3f4 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 16 Jan 2025 02:11:26 -0800 Subject: modularized nix configuration; builds correctly --- nix/modules/xserver.nix | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) (limited to 'nix/modules/xserver.nix') diff --git a/nix/modules/xserver.nix b/nix/modules/xserver.nix index 93a8601..52ca559 100644 --- a/nix/modules/xserver.nix +++ b/nix/modules/xserver.nix @@ -1,26 +1,28 @@ -{ config, lib, pkgs, ... }: +{ lib, pkgs, ... }: { - enable = lib.mkDefault config.monorepo.profiles.home.hyprland.enable; - displayManager = { - startx.enable = true; - }; + services.xserver = { + enable = lib.mkDefault true; + displayManager = { + startx.enable = true; + }; - windowManager = { - i3 = { - enable = true; - package = pkgs.i3-gaps; + windowManager = { + i3 = { + enable = true; + package = pkgs.i3-gaps; + }; }; - }; - desktopManager = { - runXdgAutostartIfNone = true; - }; + desktopManager = { + runXdgAutostartIfNone = true; + }; - xkb = { - layout = "us"; - variant = ""; - options = "caps:escape"; - }; + xkb = { + layout = "us"; + variant = ""; + options = "caps:escape"; + }; - videoDrivers = config.monorepo.profiles.vars.videoDrivers; + videoDrivers = []; + }; } -- cgit