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
Over the years, I have an opinionated way of setting up my development projects through a Nix flake. There is also one that extends that to handle my writing projects and even one after that for a specific world setting.
In all of these cases, I'm basically emitting a lib.mkConfig function that sets up the various settings (like configuring conform, turning on rust or dotnet, etc.).
devShells=forEachSupportedSystem({system,pkgs}:
letconfig=inputs.mfgames-project-setup.lib.mkConfig{inheritsystempkgs;conform.scopes=["cli""website"];rust.enable=false;};in{default=pkgs.mkShell{# Add in the required packages for the configuration.packages=[]++config.packages;# Add in theshellHook=''${config.shellHook} '';};});
I've just recently switched mfgames-project-setup-flake to use flake-parts, but I'd love to know if there is a way of using the configuration setup to use that instead of mkConfig.
# I figured out how to get this part so it can get the configuration value.mfgames-project-setup.conform.scopes=["cli""website"];mfgames-project-setup.rust.enable=true;devShells=forEachSupportedSystem({system,pkgs}:
{default=pkgs.mkShell{# Add in the required packages for the configuration.packages=[]++some-magical-property-that-generates-the-required-packages;# Add in theshellHook=''${some-magical-property-that-generates-the-shell-hook} '';};});
Even if I need a let shellHook = inputs.mfgames-project-setup.lib.shellShell or something, it would make things cleaner.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Over the years, I have an opinionated way of setting up my development projects through a Nix flake. There is also one that extends that to handle my writing projects and even one after that for a specific world setting.
In all of these cases, I'm basically emitting a
lib.mkConfigfunction that sets up the various settings (like configuringconform, turning onrustordotnet, etc.).I've just recently switched
mfgames-project-setup-flaketo useflake-parts, but I'd love to know if there is a way of using the configuration setup to use that instead ofmkConfig.Even if I need a
let shellHook = inputs.mfgames-project-setup.lib.shellShellor something, it would make things cleaner.Thank you.
Beta Was this translation helpful? Give feedback.
All reactions