From e6ed60548397627bf10f561f9438201dbba0a36e Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 21 Apr 2024 02:15:42 +0300 Subject: 2024-04-21 --- modules/xmonad.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 modules/xmonad.nix (limited to 'modules/xmonad.nix') diff --git a/modules/xmonad.nix b/modules/xmonad.nix new file mode 100644 index 0000000..7b49f52 --- /dev/null +++ b/modules/xmonad.nix @@ -0,0 +1,31 @@ +{ + config, + lib, + pkgs, + ... +}: +with lib; +let + cfg = config.nixfiles.modules.xmonad; +in +{ + options.nixfiles.modules.xmonad.enable = mkEnableOption "XMonad"; + + config = mkIf cfg.enable { + nixfiles.modules.x11.enable = true; + + hm = { + xsession = { + enable = true; + + scriptPath = ".xinitrc"; + + windowManager.command = getExe' pkgs.xmonad-ng "xmonad-ng"; + }; + }; + + services.xserver.displayManager.startx.enable = true; + + nixpkgs.overlays = [ inputs.xmonad-ng.overlays.default ]; + }; +} -- cgit 1.4.1