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,6 +1,6 @@
{ blocklist-hosts, ... }:
{ inputs, ... }:
let blocklist = builtins.readFile "${blocklist-hosts}/alternates/gambling-porn/hosts";
let blocklist = builtins.readFile "${inputs.blocklist-hosts}/alternates/gambling-porn/hosts";
in
{
networking.extraHosts = ''

View file

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