-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added how to doc showing nix-shell and editing config #442
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is what should have been placed here. Those are all normal NixOS things and we can just link to some upstream doc about this.
commands to use them: | ||
|
||
``` | ||
[nixos@nixos:/mnt/c/t/nix]$ cowsay moo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't encourage people to run commands inside /mnt/ as it very slow. Please use a normal path like ~ in the examples.
[nix-shell:/mnt/c/t/nix]$ exit | ||
exit | ||
|
||
[nixos@nixos:/mnt/c/t/nix]$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nix-shell:/mnt/c/t/nix]$ exit | |
exit | |
[nixos@nixos:/mnt/c/t/nix]$ |
To add packages, edit `/etc/nixos/configuration.nix` using sudo. You | ||
can use the `nano` editor which comes installed and uses CTRL+S to save | ||
and CTRL+X to exit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To add packages, edit `/etc/nixos/configuration.nix` using sudo. You | |
can use the `nano` editor which comes installed and uses CTRL+S to save | |
and CTRL+X to exit: | |
To add packages, edit `/etc/nixos/configuration.nix` using sudo. | |
You can use the `nano` editor which comes installed and uses CTRL+S to save and CTRL+X to exit: |
We don't need to write blocksatz.
``` | ||
environment.systemPackages = [ pkgs.cowsay pkgs.lolcat ]; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``` | |
environment.systemPackages = [ pkgs.cowsay pkgs.lolcat ]; | |
} |
...
environment.systemPackages = [ pkgs.cowsay pkgs.lolcat ];
}
Agreed, I think we should keep our docs to WSL specific things and point to some general NixOS guide |
My 2 cents here but I also agree with the others. If we allowed this then we would need to keep it update with another documentation, why not just let the user open it by himself? Since they are using wsl2 it is assumed they can open the documentation with internet or pre-download it before. |
#441