diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-07 22:11:23 +0100 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-07 23:52:17 +0100 |
| commit | 24941aa96415709bed2c68304edfc78cb4735b0c (patch) | |
| tree | d09496b746184f66229c6bfbb5a1a6e2bfe81f73 /share/home | |
| parent | f09688ae05032767512ad08222f4dd87e4c9e0c2 (diff) | |
Debloat & refactor
Diffstat (limited to 'share/home')
| -rw-r--r-- | share/home/default.nix | 14 | ||||
| -rw-r--r-- | share/home/gallery-dl.nix | 32 | ||||
| -rw-r--r-- | share/home/hyprland.nix | 10 | ||||
| -rw-r--r-- | share/home/wezterm/config.lua | 62 | ||||
| -rw-r--r-- | share/home/wezterm/default.nix | 10 | ||||
| -rw-r--r-- | share/home/zsh.nix | 2 |
6 files changed, 48 insertions, 82 deletions
diff --git a/share/home/default.nix b/share/home/default.nix index 8e2fa08..dcd9af4 100644 --- a/share/home/default.nix +++ b/share/home/default.nix @@ -4,18 +4,18 @@ imports = [ ./helix.nix ./zsh.nix ]; home.packages = with pkgs; [ - xclip wget - hunspell - hunspellDicts.en_US - hunspellDicts.hr_HR - ripgrep git age gnupg xh - fd - sd + + # Modern unix + ripgrep # grep + fd # find + sd # sed + dua # du + bc # CLI calculator ffmpeg amfora # Gemini CLI browser diff --git a/share/home/gallery-dl.nix b/share/home/gallery-dl.nix new file mode 100644 index 0000000..9231208 --- /dev/null +++ b/share/home/gallery-dl.nix @@ -0,0 +1,32 @@ +{ config, ... }: { + programs.gallery-dl = { + enable = true; + settings.extractor = { + base-directory = "${config.xdg.userDirs.download}/gallery-dl"; + + postprocessors = [ + { + name = "metadata"; + mode = "json"; + whitelist = [ + "danbooru" + "moebooru" + "gelbooru" + "sankaku" + "nhentai" + "rule34" + ]; + } + { + name = "zip"; + compression = "store"; + extension = "cbz"; + filter = "extension not in ('zip', 'rar')"; + whitelist = [ "nhentai" "mangadex" ]; + } + ]; + + Danbooru.metadata = true; + }; # End of settings.extractor + }; # End of programs.gallery-dl +} diff --git a/share/home/hyprland.nix b/share/home/hyprland.nix index 63d5d77..0666e3b 100644 --- a/share/home/hyprland.nix +++ b/share/home/hyprland.nix @@ -1,7 +1,15 @@ # IMPORTANT: this module requires the system to already have `programs.hyprland` # enabled. You can enable it by importing `share/system/hyprland.nix` { pkgs, ... }: { - imports = [ ./kitty.nix ./wpaperd.nix ./eww ]; + imports = [ + # Custom home manager modules + ../hm-modules/wpaperd.nix + + # Config + ./kitty.nix + ./wpaperd.nix + ./eww + ]; wayland.windowManager.hyprland = { enable = true; diff --git a/share/home/wezterm/config.lua b/share/home/wezterm/config.lua deleted file mode 100644 index 872a1aa..0000000 --- a/share/home/wezterm/config.lua +++ /dev/null @@ -1,62 +0,0 @@ -local wezterm = require 'wezterm' -local act = wezterm.action -local config = {} - -if wezterm.config_builder then - config = wezterm.config_builder() -end - -config.color_scheme = 'Catppuccin Mocha' -config.window_background_opacity = 0.9 - -config.default_cursor_style = "SteadyBar" -config.font = wezterm.font('Blex Mono Nerd Font') -config.font_size = 9.5 - -config.keys = { - -- Tab management - { key = '1', mods = 'ALT', action = act.ActivateTab(0) }, - { key = '2', mods = 'ALT', action = act.ActivateTab(1) }, - { key = '3', mods = 'ALT', action = act.ActivateTab(2) }, - { key = '4', mods = 'ALT', action = act.ActivateTab(3) }, - { key = '5', mods = 'ALT', action = act.ActivateTab(4) }, - { key = '6', mods = 'ALT', action = act.ActivateTab(5) }, - { key = '7', mods = 'ALT', action = act.ActivateTab(6) }, - { key = '8', mods = 'ALT', action = act.ActivateTab(7) }, - { key = 't', mods = 'CTRL|SHIFT', action = act.SpawnTab 'CurrentPaneDomain' }, - { key = 'w', mods = 'CTRL|SHIFT', action = act.CloseCurrentTab{ confirm = true}}, - { key = '{', mods = 'CTRL|SHIFT', action = act.MoveTabRelative(-1) }, - { key = '}', mods = 'CTRL|SHIFT', action = act.MoveTabRelative(1) }, - - -- Split management - { - key = 'h', - mods = 'CTRL', - action = act.SplitHorizontal { domain = 'CurrentPaneDomain' }, - }, - { - key = 'v', - mods = 'CTRL', - action = act.SplitVertical { domain = 'CurrentPaneDomain' }, - }, - { - key = 'q', - mods = 'CTRL', - action = act.CloseCurrentPane { confirm = true }, - }, - -- Split movement - -- activate pane selection mode with the default alphabet (labels are "a", "s", "d", "f" and so on) - -- (j)ump to split - { key = 'j', mods = 'CTRL', action = act.PaneSelect }, - -- show the pane selection mode, but have it swap the active and selected panes - -- (m)ove split - { - key = 'm', - mods = 'CTRL', - action = act.PaneSelect { - mode = 'SwapWithActive', - }, - }, -} - -return config diff --git a/share/home/wezterm/default.nix b/share/home/wezterm/default.nix deleted file mode 100644 index b06022b..0000000 --- a/share/home/wezterm/default.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ pkgs, ... }: { - programs.wezterm = { - enable = true; - extraConfig = builtins.readFile ./config.lua; - }; - - fonts.fontconfig.enable = true; - home.packages = with pkgs; - [ (nerdfonts.override { fonts = [ "IBMPlexMono" ]; }) ]; -} diff --git a/share/home/zsh.nix b/share/home/zsh.nix index ef79acb..8b5f2b3 100644 --- a/share/home/zsh.nix +++ b/share/home/zsh.nix @@ -67,6 +67,4 @@ # }; # }; # end of settings }; # end of programs.starship - - programs.wezterm.enableZshIntegration = true; } |
