You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, if I'd like to extend devshell with external flakes it seems not possible or not documented. Other than forking devshell and basing everything on that.
Also using Nix (in flakes) it is unclear how to refer to these module files.
Describe the solution you'd like
Would it be eventually possible to do something like:
imports = ["github:me/myflake#mydevshelmodule"]
It would be cool if it worked the same way as homeManagerModules and nixosModules in flakes:
{description="virtual environments";inputs.devshell.url="github:numtide/devshell";inputs.flake-utils.url="github:numtide/flake-utils";inputs.dsf.url="github:cruel-intentions/devshell-files";inputs.gha.url="github:cruel-intentions/gh-actions";outputs={self,flake-utils,devshell,nixpkgs,dsf,gha}:
flake-utils.lib.eachDefaultSystem(system: {devShell=letpkgs=importnixpkgs{inheritsystem;overlays=[devshell.overlay];};inpkgs.devshell.mkShell{imports=["${dsf}/modules/files.nix"# create text files for you"${dsf}/modules/yaml.nix"# use files to write yaml files from nix"${gha}/gha/gh-actions.nix"# use yaml to create .github/workflows/gh-pages.yaml# ... :-)(pkgs.devshell.importTOML./devshell.toml)];};});}
Is your feature request related to a problem? Please describe.
Currently it is possible to add modules from the extra/ directory using:
which corresponds to extra/locale.nix.
However, if I'd like to extend devshell with external flakes it seems not possible or not documented. Other than forking devshell and basing everything on that.
Also using Nix (in flakes) it is unclear how to refer to these module files.
Describe the solution you'd like
Would it be eventually possible to do something like:
It would be cool if it worked the same way as homeManagerModules and nixosModules in flakes:
That way they are easily referred to from Nix in other flakes.
Describe alternatives you've considered
extra/
in there 🤷imports = [ ./mymodule.nix ]
in Nix.The text was updated successfully, but these errors were encountered: