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