From 90c9d16d62c42d05c1683cb7e6c2272d5f24f134 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Mon, 11 May 2026 13:37:30 +0100 Subject: [PATCH] stylix: don't double-import the HM module Stylix's NixOS module already wires homeModules.stylix into each home-manager user via its nixos/common.nix. Importing it again ourselves produced "stylix.base16 is read-only, set multiple times" at evaluation. Co-Authored-By: Claude Opus 4.7 --- settings/stylix.nix | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/settings/stylix.nix b/settings/stylix.nix index f0cc0f9..084f553 100644 --- a/settings/stylix.nix +++ b/settings/stylix.nix @@ -25,16 +25,14 @@ }; }; - home-manager.users.fred = { - imports = [ inputs.stylix.homeModules.stylix ]; - - stylix.targets = { - waybar.enable = true; - fuzzel.enable = true; - mako.enable = true; - hyprlock.enable = true; - hyprland.enable = true; - }; + # Stylix's NixOS module auto-wires homeModules.stylix into every + # home-manager user, so we just opt into targets here. + home-manager.users.fred.stylix.targets = { + waybar.enable = true; + fuzzel.enable = true; + mako.enable = true; + hyprlock.enable = true; + hyprland.enable = true; }; }; }