Giter Club home page Giter Club logo

Comments (4)

bashfulrobot avatar bashfulrobot commented on August 20, 2024 1

Solved it.

 # evo = new work laptop hostname
        evo = nixpkgs.lib.nixosSystem {
          # format different due to kolide-launcher
          # nixpkgs.config.allowUnfree = true; only applies to non-flakes.
          specialArgs = {
            inherit inputs secrets;
            pkgs = import nixpkgs {
              system = "x86_64-linux";
              config.allowUnfree = true;
            };
          };

it was the:

pkgs = import nixpkgs {
              system = "x86_64-linux";
              config.allowUnfree = true;
            };

I removed that, and it started working. It was in there from when I was trying to configure Kolide. I had missed that the definitions were slightly different. I thought they were identical.

from jeezyvim.

LGUG2Z avatar LGUG2Z commented on August 20, 2024

I think you have put the overlays in the wrong place, they should be set where you set the pkgs variable and set allowUnfree:

            pkgs = import nixpkgs {
              system = "x86_64-linux";
              config.allowUnfree = true;
              overlays = [
                jeezyvim.overlays.default
                # ... other overlays here
              ];
            };

from jeezyvim.

bashfulrobot avatar bashfulrobot commented on August 20, 2024

OK, I think this may be a garbage collection issue. It does not work on my laptop, but it does on my desktop. I think it is a "me" problem.

from jeezyvim.

bashfulrobot avatar bashfulrobot commented on August 20, 2024

I think you have put the overlays in the wrong place, they should be set where you set the pkgs variable and set allowUnfree:

            pkgs = import nixpkgs {
              system = "x86_64-linux";
              config.allowUnfree = true;
              overlays = [
                jeezyvim.overlays.default
                # ... other overlays here
              ];
            };

I totally missed this message. I am still fighting this issue, but it has to be a "me" problem.

It is odd, as my overlays set under modules work for all other overlays. And is working where it is on one system but not the other.

I just went looking at a bunch of other flake.nix files using github code search, and I see many bringing it in within the modules section.

evo = nixpkgs.lib.nixosSystem {
          # format different due to kolide-launcher
          # nixpkgs.config.allowUnfree = true; only applies to non-flakes.
          specialArgs = {
            inherit inputs secrets;
            pkgs = import nixpkgs {
              system = "x86_64-linux";
              config.allowUnfree = true;
            };
          };
          system = "x86_64-linux";
          modules = [
            ./systems/evo
            nur.nixosModules.nur
            # nixos-hardware.nixosModules.lenovo-thinkpad-x13-yoga
            home-manager.nixosModules.home-manager
            nix-flatpak.nixosModules.nix-flatpak
            kolide-launcher.nixosModules.kolide-launcher
            avalanche.nixosModules."avalanche/desktop"

            {
              home-manager.extraSpecialArgs = { inherit secrets; };
              home-manager.useGlobalPkgs = true;
              home-manager.useUserPackages = true;

              # Overlays - specified in "workstationOverlays"
              nixpkgs.overlays = workstationOverlays;

              # Allow unfree packages
              nixpkgs.config.allowUnfree = true;
            }
          ];
        };

I assume your overlays are needed at the home manger level. Maybe I misunderstood?

from jeezyvim.

Related Issues (5)

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.