From ed9b88275abfc5380f3fa4080c2acca1509b0f77 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 2 May 2024 13:04:38 +0300 Subject: [PATCH] Make specialArgs = inputs // { inputs keys } --- flake.nix | 2 +- options/theme.nix | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 5b80e9d..708d2fd 100644 --- a/flake.nix +++ b/flake.nix @@ -166,7 +166,7 @@ homeManagerModule ] ++ collectNixFiles ./modules; - specialArgs = { inherit self inputs keys; }; + specialArgs = inputs // { inherit inputs keys; }; hosts = lib1.pipe (builtins.readDir ./hosts) [ (lib1.filterAttrs (name: type: type == "regular" -> lib1.hasSuffix ".nix" name)) diff --git a/options/theme.nix b/options/theme.nix index 7c3fb19..8c0be63 100644 --- a/options/theme.nix +++ b/options/theme.nix @@ -1,6 +1,4 @@ -{ inputs, lib, pkgs, ... }: let - inherit (inputs) themes; -in { +{ lib, pkgs, themes, ... }: { options.theme = lib.mkConst (themes.custom (themes.raw.gruvbox-dark-hard // { cornerRadius = 8; borderWidth = 2;