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
+5 -11

No files matched your search

+3 -3
View File
@@ -1,13 +1,11 @@
{ {
config, config,
lib,
pkgs, pkgs,
... ...
}: }:
{ {
config = lib.mkIf config.nix-leonhard.graphical.enable {
programs.kitty = { programs.kitty = {
enable = true; enable = config.nix-leonhard.graphical.enable;
themeFile = "tokyo_night_night"; themeFile = "tokyo_night_night";
font = { font = {
package = pkgs.nerd-fonts.jetbrains-mono; package = pkgs.nerd-fonts.jetbrains-mono;
@@ -17,6 +15,8 @@
keybindings = { keybindings = {
"ctrl+alt+enter" = "launch --cwd=current"; "ctrl+alt+enter" = "launch --cwd=current";
}; };
settings = {
hide_window_decorations = true;
}; };
}; };
} }
+1 -4
View File
@@ -1,12 +1,9 @@
{ {
config, config,
lib,
... ...
}: }:
{ {
config = lib.mkIf config.nix-leonhard.graphical.enable {
wayland.windowManager.niri = { wayland.windowManager.niri = {
enable = true; enable = config.nix-leonhard.graphical.enable;
};
}; };
} }
+1 -4
View File
@@ -1,12 +1,10 @@
{ {
config, config,
lib,
... ...
}: }:
{ {
config = lib.mkIf config.nix-leonhard.graphical.enable {
programs.rofi = { programs.rofi = {
enable = true; enable = config.nix-leonhard.graphical.enable;
theme = ./tokyonight.rasi; theme = ./tokyonight.rasi;
settings = { settings = {
modi = [ modi = [
@@ -40,5 +38,4 @@
kb-mode-complete = "Control+o"; kb-mode-complete = "Control+o";
}; };
}; };
};
} }