Fix usage of hm module when system config does not use stylix (#79)

This commit is contained in:
Luc Chabassier 2023-04-02 12:49:39 +02:00 committed by GitHub
parent acd0c34393
commit 4205a141bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,8 @@
{ lib, args }:
path: default:
if (args ? "osConfig" && args.osConfig.stylix.homeManagerIntegration.followSystem)
if ( args ? "osConfig"
&& args.osConfig ? "stylix"
&& args.osConfig.stylix.homeManagerIntegration.followSystem)
then lib.attrByPath path default args.osConfig.stylix
else default