From 3b09a24e0a5733f4fb527120a9c710f511862023 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Sun, 13 Jul 2025 03:56:55 +0530 Subject: Removed unecessary junk. --- modules/graphical/default.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 modules/graphical/default.nix (limited to 'modules/graphical/default.nix') diff --git a/modules/graphical/default.nix b/modules/graphical/default.nix new file mode 100644 index 0000000..7154f55 --- /dev/null +++ b/modules/graphical/default.nix @@ -0,0 +1,26 @@ +{ lib, config, pkgs, ... }: + +{ + imports = [ + ./bspwm + ./polybar + ./sxhkd + ]; + + options.graphical = { + enable = lib.mkEnableOption "Enables graphical interface."; + }; + + config = lib.mkIf config.graphical.enable { + xdg.enable = true; + xsession.enable = true; + + xsession.windowManager.command = lib.mkForce " +#!/bin/sh +${if config.tools.feh.enable then + "${pkgs.feh}/bin/feh --bg-scale ${../../assets/skeleton-mage.png}" +else "xsetroot -solid \"${config.scheme.withHashtag.base00}\""} +exec ${pkgs.bspwm}/bin/bspwm +"; + }; +} -- cgit v1.2.3