Build flags: Difference between revisions

imported>Lassulus
No edit summary
imported>Appetrosyan
Rewrote to use the file template
Line 7: Line 7:
You need to be a trusted user to override the local system feature.
You need to be a trusted user to override the local system feature.


<code>optimised_openssl.nix</code>
{{file|optimised_openssl.nix|nix|<nowiki>
<syntaxhighlight lang="nix">
let
let
   pkgs = import <nixpkgs> {
   pkgs = import <nixpkgs> {
Line 19: Line 18:
in
in
pkgs.openssl
pkgs.openssl
</syntaxhighlight>
</nowiki>}}


Then build the file:
Then build the file:
Line 27: Line 26:


==== Building the whole system on NixOS ====
==== Building the whole system on NixOS ====
In <code>/etc/nixos/configuration/nix</code>:
{{file|/etc/nixos/configuration/nix|nix|<nowiki>
<syntaxhighlight lang="nix">
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, ... }:
{
{
Line 37: Line 35:
     };
     };
}
}
</syntaxhighlight>
</nowiki>}}