Giter Club home page Giter Club logo

Comments (4)

suhr avatar suhr commented on August 25, 2024

Is there a way to get the home-manager command back?

I tried to do the following:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs-channels/nixos-unstable";
    nixpkgs-stable = {
      url = "github:NixOS/nixpkgs/nixos-20.03";
      flake = false;
    };
    home.url = github:rycee/home-manager/bqv-flakes;
    nur.url = github:nix-community/NUR;
  };

  outputs = { nixpkgs, nix, self, ... }@inputs: {
    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        (import ./configuration.nix)
        inputs.home.nixosModules.home-manager
      ];
      specialArgs = { inherit inputs; };
    };
    legacyPackages.x86_64-linux = self.nixosConfigurations.nixos.pkgs;
  };
}

Then I added home-manager.users.suhr.programs.home-manager.enable = true; to the system configuration.

nixos-rebuild switch ran without problems. But there's no home-manager at the user side.

from digga.

cruizh avatar cruizh commented on August 25, 2024

nixos-rebuild switch ran without problems. But there's no home-manager at the user side.

It seems that this is intended behaviour from home-manager. See the setting for home-manager.users.<name?>.programs.home-manager at <home-manager/modules/programs/home-manager.nix>. This checks not only that home-manager is enabled but also that submoduleSupport is disabled (and in this case it's not). This seems to come from the first ever commit with module support (nix-community/home-manager@1bc59f7).

As far as I understand (and take this with a grain of salt), you should probably just manage the home-manager generations as part of the whole system generations, and therefore there should be no need to use the home-manager CLI tool.

from digga.

suhr avatar suhr commented on August 25, 2024

Yeah, I figured out that home-manager does not support cli with flakes. I use a flake to manage user packages now. It would be nice to have something to manage some configuration as well though.

from digga.

nrdxp avatar nrdxp commented on August 25, 2024

I'm going to close this as it really isn't related to the project. However, I am hoping to update the documentation to be a bit more thorough in the near future.

from digga.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.