Git Product home page Git Product logo

Comments (8)

sagikazarmark avatar sagikazarmark commented on June 3, 2024 1

It does: https://github.com/sagikazarmark/xdevenv

from devenv.

domenkozar avatar domenkozar commented on June 3, 2024

@roberth maybe you can help here, how can additional devenv modules be specified?

from devenv.

sagikazarmark avatar sagikazarmark commented on June 3, 2024

After staring at the code for quite some time, I believe the only way I could achieve this is by adding modules here somehow:

modules = [{

I'm not sure how I could do that though.

@roberth any pointers would be greatly appreciated.

from devenv.

thenonameguy avatar thenonameguy commented on June 3, 2024

All NixOS modules can be extended further with the 'imports' key (array of files containing modules).

Have you tried doing that already?

from devenv.

sagikazarmark avatar sagikazarmark commented on June 3, 2024

@thenonameguy I haven't, but the challenge I see is that I don't want to extend the flake-parts module, I want to extend devenv directly. It's possible I'm missing something obvious though.

from devenv.

roberth avatar roberth commented on June 3, 2024

Not sure exactly in which way you want to extend it, but here's one:

I think that's what @thenonameguy wanted to suggest.

If the import needs to reference another repo, I could write something for the case where both repos are flake based. Otherwise I have to ask:

@domenkozar Can devenv.yaml import a devenv module from a flake attribute?

from devenv.

sagikazarmark avatar sagikazarmark commented on June 3, 2024

Thanks @roberth , I believe that's exactly what I was looking for.

If the import needs to reference another repo, I could write something for the case where both repos are flake based.

In my case, I'd like to reuse a set of modules across a number of repos, so yeah, I'm thinking something like this:

{
  inputs = {
    # ...
  }

  outputs = inputs@{ ... }: {
    devenvModules = {
      default = {};
    };
  }
}

And then import that module in a shell.

Let me give this a try and get back to you.

from devenv.

domenkozar avatar domenkozar commented on June 3, 2024

Does that work? :)

from devenv.

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.