From 82a6ecf8b35044f87ab7564a1753614af3925dfc Mon Sep 17 00:00:00 2001 From: Leonhard Kost Date: Wed, 18 Nov 2026 15:27:43 +0100 Subject: [PATCH] fix: fix wrong option attributes --- home/firefox.nix | 2 +- home/hyprland.nix | 2 +- home/kitty.nix | 2 +- home/rofi/default.nix | 2 +- options.nix | 2 +- system/hyprland.nix | 2 +- system/ly.nix | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/home/firefox.nix b/home/firefox.nix index 36d3c4a..19c9d03 100644 --- a/home/firefox.nix +++ b/home/firefox.nix @@ -4,7 +4,7 @@ ... }: { - config = lib.mkIf config.nix-leonhard.graphical { + config = lib.mkIf config.nix-leonhard.graphical.enable { programs.firefox.enable = true; }; } diff --git a/home/hyprland.nix b/home/hyprland.nix index c830d35..750f85a 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -6,7 +6,7 @@ }: { - config = lib.mkIf config.nix-leonhard.graphical { + config = lib.mkIf config.nix-leonhard.graphical.enable { home.packages = with pkgs; [ nordzy-cursor-theme ]; programs.waybar.enable = true; diff --git a/home/kitty.nix b/home/kitty.nix index 95cff6f..b4542ed 100644 --- a/home/kitty.nix +++ b/home/kitty.nix @@ -5,7 +5,7 @@ ... }: { - config = lib.mkIf config.nix-leonhard.graphical { + config = lib.mkIf config.nix-leonhard.graphical.enable { programs.kitty = { enable = true; themeFile = "tokyo_night_night"; diff --git a/home/rofi/default.nix b/home/rofi/default.nix index 11d2385..8f0bfc4 100644 --- a/home/rofi/default.nix +++ b/home/rofi/default.nix @@ -4,7 +4,7 @@ ... }: { - config = lib.mkIf config.nix-leonhard.graphical { + config = lib.mkIf config.nix-leonhard.graphical.enable { programs.rofi = { enable = true; theme = ./tokyonight.rasi; diff --git a/options.nix b/options.nix index 9987948..ad1f651 100644 --- a/options.nix +++ b/options.nix @@ -4,7 +4,7 @@ }: { options.nix-leonhard = { - graphical = lib.mkEnableOption "GUI features and programs"; + graphical.enable = lib.mkEnableOption "GUI features and programs"; neovim.enable = lib.mkEnableOption "neovim"; }; } diff --git a/system/hyprland.nix b/system/hyprland.nix index 3782423..3bc3ca1 100644 --- a/system/hyprland.nix +++ b/system/hyprland.nix @@ -4,7 +4,7 @@ ... }: { - config = lib.mkIf config.nix-leonhard.graphical { + config = lib.mkIf config.nix-leonhard.graphical.enable { programs.hyprland.enable = true; }; } diff --git a/system/ly.nix b/system/ly.nix index ca2d57b..42bb983 100644 --- a/system/ly.nix +++ b/system/ly.nix @@ -4,7 +4,7 @@ ... }: { - config = lib.mkIf config.nix-leonhard.graphical { + config = lib.mkIf config.nix-leonhard.graphical.enable { services.displayManager.ly.enable = true; }; }