stylix: drop unnecessary use of self in home-manager

This commit is contained in:
Matt Sturgeon 2025-05-28 18:42:59 +01:00
parent 950483a5d0
commit 5fa31498d2
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 14 additions and 19 deletions

View file

@ -27,7 +27,7 @@
{ pkgs, ... }@args:
{
imports = [
(lib.modules.importApply ../stylix/hm inputs)
../stylix/hm
{
stylix = {
inherit inputs;

View file

@ -1,32 +1,27 @@
inputs:
{
lib,
config,
...
}:
# Imported modules which define new options must use an absolute path based
# on ${inputs.self}, otherwise those options will not appear in the generated
# documentation.
let
autoload = import ../autoload.nix { inherit lib; } "hm";
in
{
imports = [
"${inputs.self}/stylix/cursor.nix"
"${inputs.self}/stylix/fonts.nix"
"${inputs.self}/stylix/hm/cursor.nix"
"${inputs.self}/stylix/hm/fonts.nix"
"${inputs.self}/stylix/hm/icon.nix"
"${inputs.self}/stylix/hm/palette.nix"
"${inputs.self}/stylix/icon.nix"
"${inputs.self}/stylix/opacity.nix"
"${inputs.self}/stylix/palette.nix"
"${inputs.self}/stylix/pixel.nix"
"${inputs.self}/stylix/target.nix"
"${inputs.self}/stylix/release.nix"
"${inputs.self}/stylix/overlays.nix"
./cursor.nix
./fonts.nix
./icon.nix
./palette.nix
../cursor.nix
../fonts.nix
../icon.nix
../opacity.nix
../palette.nix
../pixel.nix
../target.nix
../release.nix
../overlays.nix
] ++ autoload;
config.warnings =
lib.mkIf