refactor: simplify options

This commit is contained in:
leonhard committed 2026-11-23 11:16:00 +01:00
1 parent 216f2cca81
commit 690766ac3f
3 files changed
+46 -52

No files matched your search

+13 -13
View File
@@ -1,22 +1,22 @@
{ {
config, config,
lib,
pkgs, pkgs,
... ...
}: }:
{ {
config = lib.mkIf config.nix-leonhard.graphical.enable { programs.kitty = {
programs.kitty = { enable = config.nix-leonhard.graphical.enable;
enable = true; themeFile = "tokyo_night_night";
themeFile = "tokyo_night_night"; font = {
font = { package = pkgs.nerd-fonts.jetbrains-mono;
package = pkgs.nerd-fonts.jetbrains-mono; name = "JetBrainsMono NF";
name = "JetBrainsMono NF"; size = 14;
size = 14; };
}; keybindings = {
keybindings = { "ctrl+alt+enter" = "launch --cwd=current";
"ctrl+alt+enter" = "launch --cwd=current"; };
}; settings = {
hide_window_decorations = true;
}; };
}; };
} }
+2 -5
View File
@@ -1,12 +1,9 @@
{ {
config, config,
lib,
... ...
}: }:
{ {
config = lib.mkIf config.nix-leonhard.graphical.enable { wayland.windowManager.niri = {
wayland.windowManager.niri = { enable = config.nix-leonhard.graphical.enable;
enable = true;
};
}; };
} }
+31 -34
View File
@@ -1,44 +1,41 @@
{ {
config, config,
lib,
... ...
}: }:
{ {
config = lib.mkIf config.nix-leonhard.graphical.enable { programs.rofi = {
programs.rofi = { enable = config.nix-leonhard.graphical.enable;
enable = true; theme = ./tokyonight.rasi;
theme = ./tokyonight.rasi; settings = {
settings = { modi = [
modi = [ "drun"
"drun" "window"
"window" "run"
"run" ];
]; font = "JetBrainsMono Nerd Font 11";
font = "JetBrainsMono Nerd Font 11"; icon-theme = "Papirus-Dark";
icon-theme = "Papirus-Dark"; show-icons = true;
show-icons = true; terminal = "kitty";
terminal = "kitty"; drun-display-format = "{icon} {name}";
drun-display-format = "{icon} {name}"; location = 0;
location = 0; disable-history = false;
disable-history = false; sidebar-mode = false;
sidebar-mode = false; display-drun = " ";
display-drun = " "; display-run = " ";
display-run = " "; display-window = " ";
display-window = " ";
kb-row-up = "Up,Control+k"; kb-row-up = "Up,Control+k";
kb-row-left = "Left,Control+h"; kb-row-left = "Left,Control+h";
kb-row-right = "Right,Control+l"; kb-row-right = "Right,Control+l";
kb-row-down = "Down,Control+j"; kb-row-down = "Down,Control+j";
kb-accept-entry = "Return"; kb-accept-entry = "Return";
# remove clashing keybinds # remove clashing keybinds
kb-remove-to-eol = ""; kb-remove-to-eol = "";
kb-move-char-back = "Control+b"; kb-move-char-back = "Control+b";
kb-remove-char-back = "BackSpace"; kb-remove-char-back = "BackSpace";
kb-move-char-forward = "Control+f"; kb-move-char-forward = "Control+f";
kb-mode-complete = "Control+o"; kb-mode-complete = "Control+o";
};
}; };
}; };
} }