refactor(stylix): use stylix 'autoImport'

This commit is contained in:
2026-05-24 17:02:11 +02:00
parent 258ff2126c
commit 7c92f57039
3 changed files with 2 additions and 3 deletions

View File

@@ -138,6 +138,7 @@
}; };
modules = [ ./home/hosts/work ]; modules = [ ./home/hosts/work ];
extraSpecialArgs = { extraSpecialArgs = {
osConfig = null;
inherit inherit
inputs inputs
outputs outputs

View File

@@ -8,6 +8,7 @@
{ {
imports = [ imports = [
inputs.sops-nix.homeManagerModules.sops inputs.sops-nix.homeManagerModules.sops
inputs.stylix.homeModules.stylix
../../modules ../../modules
]; ];

View File

@@ -1,7 +1,6 @@
{ {
config, config,
lib, lib,
inputs,
pkgs, pkgs,
... ...
}: }:
@@ -11,8 +10,6 @@ let
theme = import ../../../modules/stylix/theme.nix { inherit pkgs; }; theme = import ../../../modules/stylix/theme.nix { inherit pkgs; };
in in
{ {
imports = [ inputs.stylix.homeModules.stylix ];
options.my.stylix.enable = lib.mkEnableOption "stylix"; options.my.stylix.enable = lib.mkEnableOption "stylix";
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {