From 345b94dcbdab10ad7def769e60d4b01e95b9ee22 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 6 Jul 2023 19:43:40 +0300 Subject: [PATCH] finish bspwm module and kitty module and begin making zsh module --- modules/desktop/{bspwm => }/bspwm.nix | 0 modules/desktop/kitty.nix | 20 ++++++++++++++++++++ modules/desktop/kitty/kitty.nix | 0 modules/shell/zsh.nix | 15 +++++++++++++++ 4 files changed, 35 insertions(+) rename modules/desktop/{bspwm => }/bspwm.nix (100%) create mode 100644 modules/desktop/kitty.nix delete mode 100644 modules/desktop/kitty/kitty.nix create mode 100644 modules/shell/zsh.nix diff --git a/modules/desktop/bspwm/bspwm.nix b/modules/desktop/bspwm.nix similarity index 100% rename from modules/desktop/bspwm/bspwm.nix rename to modules/desktop/bspwm.nix diff --git a/modules/desktop/kitty.nix b/modules/desktop/kitty.nix new file mode 100644 index 00000000..5cc26915 --- /dev/null +++ b/modules/desktop/kitty.nix @@ -0,0 +1,20 @@ +{ options, config, lib, pkgs, ...}: +with lib; +let cfg = config.modules.desktop.kitty; +in { + options.modules.desktop.kitty = { + enable = mkBoolOpt false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + kitty + ]; + fonts.fonts = with pkgs; [ + jetbrains-mono + (nerdfonts.override { fonts = [ + "JetBrainsMono" + ];}) + ]; + }; +} diff --git a/modules/desktop/kitty/kitty.nix b/modules/desktop/kitty/kitty.nix deleted file mode 100644 index e69de29b..00000000 diff --git a/modules/shell/zsh.nix b/modules/shell/zsh.nix new file mode 100644 index 00000000..0dfaec9e --- /dev/null +++ b/modules/shell/zsh.nix @@ -0,0 +1,15 @@ +{ options, config, lib, pkgs, ...}: +with lib; +let cfg = config.modules.shell.zsh; +in { + options.modules.shell.zsh = { + enable = mkBoolOpt false; + }; + + config = mkIf cfg.enable { + programs.zsh = { + enable = true; + promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-heme"; + }; + }; +}