Refactors flake inputs to be passed as single specialArg for simplicity

This commit is contained in:
Emmet 2024-04-13 15:21:51 -05:00
parent 7888439a8d
commit d558c9a91e
8 changed files with 43 additions and 57 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, userSettings, ... }:
{ config, lib, pkgs, inputs, userSettings, ... }:
let
themePath = "../../../themes"+("/"+userSettings.theme+"/"+userSettings.theme)+".yaml";
@ -7,6 +7,9 @@ let
backgroundSha256 = builtins.readFile (./. + "../../../themes/"+("/"+userSettings.theme)+"/backgroundsha256.txt");
in
{
imports = [ inputs.stylix.homeManagerModules.stylix ];
home.file.".currenttheme".text = userSettings.theme;
stylix.autoEnable = false;
stylix.polarity = themePolarity;