Determite-nix: Difference between revisions

Onny (talk | contribs)
Initial page
 
Onny (talk | contribs)
mNo edit summary
Line 2: Line 2:


== Setup ==
== Setup ==
<syntaxhighlight lang="nix">
Add the input <code>determinate</code> and the module <code>determinate.nixosModules.default</code> to your system flake.nix configuration<syntaxhighlight lang="nix">{
{
   inputs.determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/*";
   inputs.determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/*";
   inputs.nixpkgs.url = "nixpkgs/nixos-25.11";
   inputs.nixpkgs.url = "nixpkgs/nixos-25.11";
Line 16: Line 15:
     };
     };
   };
   };
}
}</syntaxhighlight>After that add the two extra options to your <code>nixos-rebuild</code> command and apply changes<syntaxhighlight lang="bash">
</syntaxhighlight>After that<syntaxhighlight lang="bash">
sudo nixos-rebuild \
sudo nixos-rebuild \
   --option extra-substituters https://install.determinate.systems \
   --option extra-substituters https://install.determinate.systems \