From 69e025eb82ff4f97b1d4a17c9d69f6009e96f01f Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sat, 8 Jul 2023 18:30:16 +0300 Subject: [PATCH] readme and bspwm --- README.md | 2 +- modules/desktop/bspwm/default.nix | 28 ++++++++++++++++++++++++++++ modules/desktop/default.nix | 1 + 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 modules/desktop/bspwm/default.nix diff --git a/README.md b/README.md index d37d0083..9babdfa1 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ## Templates/Resources used -[Misterio77/nix-starter-configs2](https://github.com/Misterio77/nix-starter-configs) +[Misterio77/nix-starter-configs2](https://github.com/Misterio77/nix-starter-configs)

[pull request for a bug](https://github.com/Misterio77/nix-starter-configs/pull/34/commits/2a5f3ca3dde606b83ea30b5507347bf989819301) [doom emacs guy -> hlissner/dotfiles](https://github.com/hlissner/dotfiles) [nixos.wiki (unofficial)](https://nixos.wiki/) diff --git a/modules/desktop/bspwm/default.nix b/modules/desktop/bspwm/default.nix new file mode 100644 index 00000000..1f92f3b8 --- /dev/null +++ b/modules/desktop/bspwm/default.nix @@ -0,0 +1,28 @@ +{ options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.bspwm; +in +{ + options.modules.desktop.bspwm = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + services.xserver = { + enable = true; + windowManager.bspwm.enable = true; + }; + users.users.sako.packages = with pkgs; [ + kitty + ]; + + home-manager.users.sako = { pkgs , ...}: { + xdg.configFile = { + kitty = { + source = ../../../config/kitty; + }; + }; + }; + }; +} diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index 5c8c2514..c6b5ecb6 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -1,5 +1,6 @@ { imports = [ ./kitty + ./bspwm ]; }