Jump to content

Talk:FAQ

From NixOS Wiki
Latest comment: 14 June by DoggoBit in topic How to reorganise this article moving forward

Previous comments

I fixed the syntax in the section on "How can I manage software with nix-env like with configuration.nix?" but it still doesn't work for me and there are lines of code there that are not explained (so probably should be bu I don't understand).

```

     inherit ((import <nixpkgs/nixos> {}).config.system.path)
     pathsToLink ignoreCollisions postBuild;
     extraOutputsToInstall = [ "man" ];

```

What does all that mean? And is it compulsory? If I leave it in I get this:

``` $ nix-env -iA userPackages -f '<nixpkgs>' installing 'user-packages' error: file 'nixos-config' was not found in the Nix search path (add it using $NIX_PATH or -I), at /home/dsyer/.nix-defexpr/channels/nixpkgs/nixos/default.nix:1:60 (use '--show-trace' to show detailed location information ```

If I remove it I get:

``` $ nix-env -iA userPackages -f '<nixpkgs>' installing 'user-packages' building '/nix/store/59z3yxcxnm2cs2922gwnjk882v5n9rk9-user-environment.drv'... error: packages '/nix/store/fjm4sqv4ms737c7jsv36l3y8b320vqfg-git-2.25.1/share/man/man7/gittutorial-2.7.gz' and '/nix/store/5yxbj5d6w10rrxi9r33954qayxyipykf-git-2.25.1/share/man/man7/gittutorial-2.7.gz' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority) builder for '/nix/store/59z3yxcxnm2cs2922gwnjk882v5n9rk9-user-environment.drv' failed with exit code 1 error: build of '/nix/store/59z3yxcxnm2cs2922gwnjk882v5n9rk9-user-environment.drv' failed ``` {{#subst:unsigned|imported>Dsyer|26 April 2020}}

How to reorganise this article moving forward

I see that the original idea of the FAQ was to have subpages that are transcluded into the FAQ article. By itself, I think that's a pretty bad move, especially since we have the Visual Editor now, which makes editing a page made exclusively of transcluded articles especially painful. However, the current state, where some questions are transcluded and some are not is even worse.

I would also bring up that the new questions being added have been of the non-transcluded kind. This is quite telling, the natural editing tendency is to just add content on the page.

However, there is one benefit of this approach we might consider. We could have a FAQ section on the main page that randomly draws one question from this set. We could also do it separately (aka, have a Main page/FAQ with subpages for the particularly pertinent questions.

In any case, I would normally "ask for forgiveness instead of permission" and go ahead with the changes, but in this case I am not 100% sure, and would like to know any other opinions, either for or against, or on the fence. Thanks. DoggoBit (talk) 23:33, 14 June 2025 (UTC)Reply