Robert Hensing

Results 909 comments of Robert Hensing

How should this operate? What to do when the script fails? Does the profile switch before or after activation? Should `nix` even have an answer for these questions? `nixos-rebuild` is...

I really like this. I didn't think we could use `nix` because portable `/usr/bin/env` doesn't support extra arguments, but you've proven me wrong :tada:. My only objection as far as...

To support `nix develop`, you could override the various `basePath`/`baseDir` variables to point to the script's location. That way its functioning does not depend on the caller's working directory, which...

> we don't run the setup or shell hooks This is why we need to[ rename](https://github.com/NixOS/nix/issues/4715) the current `nix shell` to something like [`nix env run`](https://github.com/NixOS/nix/issues/4715#issuecomment-875729369). If you want to...

The `#! nix` has the same role as `#!nix-shell` which seemed to have served a technical purpose for potentially mixing shebang aware interpreters. I wonder to what extend this is...

@ymeister that's a good suggestion, but it is not universally supported on the other unixes. It also doesn't allow spaces in arguments for use with `--expr`.

I may have been wrong about `-S` with quotes. I only read the man page, not the `info` page (:confused:) which goes into more detail, confirming your observations for at...

I'm not sure about `exportOptionsUnderConfig`. It doesn't seem right, to return options there. What does a module return? a. Since RFC42, we've cleaned up the return "config" so that it...

### Superoptions or _supermodules_ I've found another way to write supermodules that avoids the early merge problem. It is very similar to what you're introducing in this PR. Here's what...

@edolstra, except for my unrealistic proposal where "supermodules" would be integrated into the system automatically, they don't actually allow the submodule itself to modify the system config. The regular, non-submodule,...