Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lostmsu opened this issue Dec 7, 2024 · 3 comments
Open

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

lostmsu opened this issue Dec 7, 2024 · 3 comments

Comments

@lostmsu
Copy link

lostmsu commented Dec 7, 2024

I am facing the above issue and I am new to NixOS.

I am using home-manager directly from configuration.nix, e.g. I had

/etc/nixos/configuration.nix:

  imports =
    [ # Include the results of the hardware scan.
      /etc/nixos/hardware-configuration.nix
      <home-manager/nixos>
    ];
  
  ...
  
  home-manager.users.xxx = ...;

I've tried adding plasma-manager/modules like this:

/etc/nixos/configuration.nix:

  imports =
    [ # Include the results of the hardware scan.
      /etc/nixos/hardware-configuration.nix
      <home-manager/nixos>
      # see https://github.com/nix-community/plasma-manager/blob/trunk/examples/homeManager/home.nix
      <plasma-manager/modules>
    ];

I got:

error: The option `home' does not exist. Definition values:

  - In `/nix/var/nix/profiles/per-user/root/channels/plasma-manager/modules/apps/okular.nix':
@HeitorAugustoLN
Copy link
Member

Plasma-manager module should be imported inside home-manager, and not nixos

@NovaViper
Copy link

You need to import plasma-manager into Home-Manager's NixOS module like this

    home-manager.sharedModules = [ inputs.plasma-manager.homeManagerModules.plasma-manager ];

@HeitorAugustoLN
Copy link
Member

Or you could import it inside your user configuration by just using the imports.

So basically:

{
  home-manager.sharedModules = [ <plasma-manager/modules> ];
}

or

{
  home-manager.users.your-user = {
    imports = [ <plasma-manager/modules> ];
  };
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants