From fae1c284970d295e3c66f4f8efa4ebf6451d6ef8 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 6 Jul 2023 14:45:34 +0300 Subject: [PATCH] make modules --- modules/desktop/bspwm/.gitkeep | 0 modules/desktop/bspwm/bspwm.nix | 30 +++++++++++++++++++ modules/desktop/kde/.gitkeep | 0 modules/desktop/{.gitkeep => kitty/kitty.nix} | 0 4 files changed, 30 insertions(+) delete mode 100644 modules/desktop/bspwm/.gitkeep create mode 100644 modules/desktop/bspwm/bspwm.nix delete mode 100644 modules/desktop/kde/.gitkeep rename modules/desktop/{.gitkeep => kitty/kitty.nix} (100%) diff --git a/modules/desktop/bspwm/.gitkeep b/modules/desktop/bspwm/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/modules/desktop/bspwm/bspwm.nix b/modules/desktop/bspwm/bspwm.nix new file mode 100644 index 00000000..4f5e015c --- /dev/null +++ b/modules/desktop/bspwm/bspwm.nix @@ -0,0 +1,30 @@ +{ options, config, lib, pkgs, ...}: +with lib; +let cfg = config.modules.desktop.bspwm; +in { + options.modules.desktop.bspwm = { + enable = mkBoolOpt false; + }; + + config = mkIf cfg.enable { + services.xserver = { + enable = true; + windowManager.bspwm.enable = true; + layout = "us"; + }; + xdg.configFile = { + bspwm = { + source = ../../../config/bspwm; + }; + sxhkd = { + source = ../../../config/sxhkd; + }; + }; + users.users.sako.packages = with pkgs; [ + rofi + (polybar.override { + pulseSupport = true; + }) + ]; + }; +} diff --git a/modules/desktop/kde/.gitkeep b/modules/desktop/kde/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/modules/desktop/.gitkeep b/modules/desktop/kitty/kitty.nix similarity index 100% rename from modules/desktop/.gitkeep rename to modules/desktop/kitty/kitty.nix