catppuccin / nix

❄️ Soothing pastel theme for Nix
https://nix.catppuccin.com/
MIT License
394 stars 54 forks source link

micro.catppuccin.enable conflict #109

Closed RAVENz46 closed 6 months ago

RAVENz46 commented 6 months ago

I never set micro.catppuccin.enable = true; but it returns error.

`sudo nixos-rebuild dry-activate --flake .#nixos --show-trace` ``` building the system configuration... error: … while calling anonymous lambda at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/attrsets.nix:1537:24: 1536| let f = attrPath: 1537| zipAttrsWith (n: values: | ^ 1538| let here = attrPath ++ [n]; in … while calling anonymous lambda at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/attrsets.nix:1171:18: 1170| mapAttrs 1171| (name: value: | ^ 1172| if isAttrs value && cond value … from call site at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/attrsets.nix:1174:18: 1173| then recurse (path ++ [ name ]) value 1174| else f (path ++ [ name ]) value); | ^ 1175| in … while calling anonymous lambda at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:242:72: 241| # For definitions that have an associated option 242| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | ^ 243| … while evaluating the option `system.build.toplevel': … while calling anonymous lambda at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:824:28: 823| # Process mkMerge and mkIf properties. 824| defs' = concatMap (m: | ^ 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) … while evaluating definitions from `/nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/nixos/modules/system/activation/top-level.nix': … from call site at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:825:137: 824| defs' = concatMap (m: 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | ^ 826| ) defs; … while calling 'dischargeProperties' at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:896:25: 895| */ 896| dischargeProperties = def: | ^ 897| if def._type or "" == "merge" then … from call site at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/nixos/modules/system/activation/top-level.nix:71:12: 70| # Replace runtime dependencies 71| system = foldr ({ oldDependency, newDependency }: drv: | ^ 72| pkgs.replaceDependency { inherit oldDependency newDependency drv; } … while calling 'foldr' at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/lists.nix:121:20: 120| */ 121| foldr = op: nul: list: | ^ 122| let … from call site at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/lists.nix:128:8: 127| else op (elemAt list n) (fold' (n + 1)); 128| in fold' 0; | ^ 129| … while calling 'fold'' at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/lists.nix:124:15: 123| len = length list; 124| fold' = n: | ^ 125| if n == len … while calling anonymous lambda at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/attrsets.nix:1171:18: 1170| mapAttrs 1171| (name: value: | ^ 1172| if isAttrs value && cond value … from call site at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/attrsets.nix:1174:18: 1173| then recurse (path ++ [ name ]) value 1174| else f (path ++ [ name ]) value); | ^ 1175| in … while calling anonymous lambda at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:242:72: 241| # For definitions that have an associated option 242| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | ^ 243| … while evaluating the option `assertions': … while calling anonymous lambda at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:824:28: 823| # Process mkMerge and mkIf properties. 824| defs' = concatMap (m: | ^ 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) … while evaluating definitions from `/nix/store/470w68hjxk5g3argihzj3dh4yfvdfkqq-source/nixos/common.nix': … from call site at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:825:137: 824| defs' = concatMap (m: 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | ^ 826| ) defs; … while calling 'dischargeProperties' at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:896:25: 895| */ 896| dischargeProperties = def: | ^ 897| if def._type or "" == "merge" then … from call site at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:902:11: 901| if def.condition then 902| dischargeProperties def.content | ^ 903| else … while calling 'dischargeProperties' at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:896:25: 895| */ 896| dischargeProperties = def: | ^ 897| if def._type or "" == "merge" then … from call site at /nix/store/470w68hjxk5g3argihzj3dh4yfvdfkqq-source/nixos/common.nix:109:20: 108| 109| assertions = flatten (flip mapAttrsToList cfg.users (user: config: | ^ 110| flip map config.assertions (assertion: { … while calling 'flatten' at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/lists.nix:383:13: 382| */ 383| flatten = x: | ^ 384| if isList x … while calling anonymous lambda at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/lists.nix:385:21: 384| if isList x 385| then concatMap (y: flatten y) x | ^ 386| else [x]; … from call site at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/lists.nix:385:24: 384| if isList x 385| then concatMap (y: flatten y) x | ^ 386| else [x]; … while calling 'flatten' at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/lists.nix:383:13: 382| */ 383| flatten = x: | ^ 384| if isList x … while calling anonymous lambda at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/attrsets.nix:1062:10: 1061| attrs: 1062| map (name: f name attrs.${name}) (attrNames attrs); | ^ 1063| … from call site at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/attrsets.nix:1062:16: 1061| attrs: 1062| map (name: f name attrs.${name}) (attrNames attrs); | ^ 1063| … while calling anonymous lambda at /nix/store/470w68hjxk5g3argihzj3dh4yfvdfkqq-source/nixos/common.nix:109:66: 108| 109| assertions = flatten (flip mapAttrsToList cfg.users (user: config: | ^ 110| flip map config.assertions (assertion: { … from call site at /nix/store/470w68hjxk5g3argihzj3dh4yfvdfkqq-source/nixos/common.nix:110:9: 109| assertions = flatten (flip mapAttrsToList cfg.users (user: config: 110| flip map config.assertions (assertion: { | ^ 111| inherit (assertion) assertion; … while calling 'flip' at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/trivial.nix:314:16: 313| */ 314| flip = f: a: b: f b a; | ^ 315| … while calling anonymous lambda at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/attrsets.nix:1171:18: 1170| mapAttrs 1171| (name: value: | ^ 1172| if isAttrs value && cond value … from call site at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/attrsets.nix:1174:18: 1173| then recurse (path ++ [ name ]) value 1174| else f (path ++ [ name ]) value); | ^ 1175| in … while calling anonymous lambda at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:242:72: 241| # For definitions that have an associated option 242| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | ^ 243| … while evaluating the option `home-manager.users.ravenz46.assertions': … while calling anonymous lambda at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:824:28: 823| # Process mkMerge and mkIf properties. 824| defs' = concatMap (m: | ^ 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) … while evaluating definitions from `/nix/store/jkzl878icx3syxrq2rddpwqdclikhn2v-source/hosts/nixos/nixos/user.nix': … from call site at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:825:137: 824| defs' = concatMap (m: 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | ^ 826| ) defs; … while calling 'dischargeProperties' at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:896:25: 895| */ 896| dischargeProperties = def: | ^ 897| if def._type or "" == "merge" then … while calling anonymous lambda at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/attrsets.nix:1171:18: 1170| mapAttrs 1171| (name: value: | ^ 1172| if isAttrs value && cond value … while calling anonymous lambda at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:676:37: 675| 676| matchedOptions = mapAttrs (n: v: v.matchedOptions) resultsByName; | ^ 677| … from call site at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:646:32: 645| in { 646| matchedOptions = evalOptionValue loc opt defns'; | ^ 647| unmatchedDefns = []; … while calling 'evalOptionValue' at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:780:31: 779| config value. */ 780| evalOptionValue = loc: opt: defs: | ^ 781| let … from call site at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:805:9: 804| warnDeprecation = 805| warnIf (opt.type.deprecationMessage != null) | ^ 806| "The type `types.${opt.type.name}' of option `${showOption loc}' defined in ${showFiles opt.declarations} is deprecated. ${opt.type.deprecationMessage}"; … while calling 'warnIf' at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/trivial.nix:729:18: 728| */ 729| warnIf = cond: msg: if cond then warn msg else x: x; | ^ 730| … from call site at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:644:23: 643| if length optionDecls == length decls then 644| let opt = fixupOptionType loc (mergeOptionDecls loc decls); | ^ 645| in { … while calling 'fixupOptionType' at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:957:26: 956| # TODO: Merge this into mergeOptionDecls 957| fixupOptionType = loc: opt: | ^ 958| if opt.type.getSubModules or null == null … from call site at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:644:44: 643| if length optionDecls == length decls then 644| let opt = fixupOptionType loc (mergeOptionDecls loc decls); | ^ 645| in { … while calling 'mergeOptionDecls' at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:741:9: 740| mergeOptionDecls = 741| loc: opts: | ^ 742| foldl' (res: opt: … while calling anonymous lambda at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:742:18: 741| loc: opts: 742| foldl' (res: opt: | ^ 743| let t = res.type; error: The option `home-manager.users.ravenz46.programs.micro.catppuccin.enable' in `/nix/store/jkzl878icx3syxrq2rddpwqdclikhn2v-source/hosts/nixos/nixos/user.nix' is already declared in `/nix/store/jkzl878icx3syxrq2rddpwqdclikhn2v-source/hosts/nixos/nixos/user.nix'. ```
hosts/nixos/nixos/user.nix ``` { config, pkgs, lib, inputs, outputs, ... }: { users.users.ravenz46 = { isNormalUser = true; description = "ravenz46"; extraGroups = [ "networkmanager" "wheel" "libvirtd" "docker" "podman" "lxd" "incus-admin" "adbusers" "audio" ]; shell = pkgs.fish; packages = with pkgs; [ ]; }; home-manager = { extraSpecialArgs = { inherit inputs outputs; }; useGlobalPkgs = true; useUserPackages = true; users.ravenz46 = import ../home-manager/home.nix; }; # add user to automatic login services.xserver.displayManager.autoLogin.user = "ravenz46"; } ```
getchoo commented 6 months ago

given the way this is imported (i.e., home.nix is imported directly and not through imports), i can't really know for sure what's going on here without more context. my best guess is that the module may have been imported twice in home.nix or something else it imports. has this configuration been uploaded anywhere? running grep -R 'homeManagerModules.catppuccin' in the root of the project maybe also help track this down

RAVENz46 commented 6 months ago

Thanks for your advises. I strip all imports = [ inputs.catppuccin.homeManagerModule.catppuccin ]; and move it to flake.nix. Now I got another error

building the system configuration...
error:
       … while calling the 'seq' builtin

         at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:322:18:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          323|         _module = checked (config._module);

       … while calling the 'throw' builtin

         at /nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/lib/modules.nix:298:18:

          297|                     ''
          298|             else throw baseMsg
             |                  ^
          299|         else null;

       error: The option `gtk.cursorTheme' does not exist. Definition values:
       - In `/nix/store/450afzqlzzgw6wnyc3dwysf3i5yxyqkr-source/flake.nix'

And here is my config. So sorry that I don't want upload it as my repo cause now I'm cleaning up. nix-config.zip

RAVENz46 commented 6 months ago

Now I resolved issue. Thanks!