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 ]; }