NixOS modules: Difference between revisions

imported>Malteneuss
m Make simplified syntax more obvious
imported>Imadnyc
Added a section about flake
Line 351: Line 351:
</syntaxhighlight>
</syntaxhighlight>


=== With Flakes ===
If you're developing a module from nixpkgs, you can try and follow the directions here: https://github.com/Misterio77/nix-starter-configs/issues/28.
If you want to develop a module from a git repo, you can use `--override-input`. For example, if you have an input in your flake called {{ic|jovian}},, you can use
<syntaxhighlight lang="bash">
nixos-rebuild switch --override-input jovian <path-to-url>` --flake <uri>
</syntaxhighlight>
Of course, it doesn't have to be {{|c|nixos-rebuild}} in particular.
== References ==
== References ==