From ccd52c1beb9aeeb78e55b19b2595ab5cee924074 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Wed, 29 Nov 2023 15:53:06 +0300 Subject: [PATCH] Fix infinite recursion --- flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 50a1cd8..db5cb02 100644 --- a/flake.nix +++ b/flake.nix @@ -1,8 +1,10 @@ { description = "Theme your NixOS configuration consistently."; - outputs = { self }: { + outputs = { self }: let raw = import ./themes.nix; + in { + inherit raw; custom = theme: let onlyColors = builtins.removeAttrs theme [ "name" "author" ]; @@ -17,5 +19,5 @@ tmTheme = (import ./templates/tmTheme.nix) themeFull; adwaitaGtkCss = (import ./templates/adwaitaGtkCss.nix) themeFull; }; - } // builtins.mapAttrs (name: self.custom) self.raw; + } // builtins.mapAttrs (name: self.custom) raw; }