nix-community/plasma-manager

Enabling Plasma-manager errors with "option 'home' doesn't exist"

Closed this issue · 4 comments

After enabling plasma-manager in my flake and configuring plasma and including it in my home options, I can no longer rebuild due to a missing option:\

error:
       … while calling the 'seq' builtin

         at /nix/store/60sn02zhawl3kwn0r515zff3h6hg6ydz-source/lib/modules.nix:334:18:

          333|         options = checked options;
          334|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          335|         _module = checked (config._module);

       … while calling the 'throw' builtin

         at /nix/store/60sn02zhawl3kwn0r515zff3h6hg6ydz-source/lib/modules.nix:310:18:

          309|                     ''
          310|             else throw baseMsg
             |                  ^
          311|         else null;

       error: The option `home' does not exist. Definition values:
       - In `/nix/store/qrjid9rx952dzbq7hipmpw5kv5309v69-source/modules/apps/okular.nix':
           {
             packages = {
               _type = "if";
               condition = false;
               content = [
           ...

I'm very confused as to go about fixing this as it seems like it is an issue with some package

Is plasma-manager being configured inside home-manager? Is home-manager module being imported? (if using nixos module)
This error is caused because plasma-manager is trying to use home-manager, but it doesn't exist.

Yes it is configured in home manager. Yes home manager exists it works for everything else.
I have it in my inputs

inputs = {
    # unstable
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    plasma-manager = {
      url = "github:nix-community/plasma-manager";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.home-manager.follows = "home-manager";
    };

it is in the outputs
outputs = inputs@{ nixpkgs, home-manager, plasma-manager, ... }: let

and it is within home manager modules

name = nixpkgs.lib.nixosSystem {
        inherit system;
        modules = [
          ./hosts/name/configuration.nix

          home-manager.nixosModules.home-manager
          plasma-manager.homeManagerModules.plasma-manager
          {
            home-manager.useGlobalPkgs = true;
            home-manager.useUserPackages = true;
            home-manager.backupFileExtension = "backup";
            # inheriting vsc-extensions here for use in home-manager

            home-manager.users.misty = import ./hosts/name/home.nix;
            };
          }
        ];
      };

it is also correctly imported into my home.nix file

It is happening because you are importing plasma-manager in nixos modules, it shouldn't be there.
The error is happening because nixos is evaluating the module, and home is not available in nixos options

thank you I figured out the issue, I was reading through the wrong flake example.