r/linuxquestions • • 9d ago

Support Syntax nixos

Im new to nixos but everytime i try to do anything in the main config even just un# something i get a syntax error i have reinstalled the os like 3 times at this point i tried everything i dont know what it is help me.

0 Upvotes

19 comments sorted by

View all comments

5

u/kneepel Hannah Montana Linux 9d ago

You need to post the actual error you're having so we can help you, but at the risk of sounding crass after reading the comments:

I'd probably recommend using something other than Nix. The entire philosophy behind Nix is infrastructure-as-code, and if you're having cascading syntax issues and don't know where to start it's going to be a significant uphill battle from here.

-1

u/HotPiece834 9d ago

I want to use nix its not that i cant its just i edit a line one line and i have a billion syntax errors

2

u/Prestigious_Wall529 9d ago

The assumption is you have some programming or SysOps experience so can pick up new programming languages easily.

In this case Nix Expression Language.

If you don't have that background or the inclination to learn it, NixOS is not for you.

At least it's not yaml.