Cheatsheet: Difference between revisions
imported>Artturin add Using override with nix-build |
imported>Sorrel →A NixOS cheat sheet and comparison to Ubuntu: stdenv.lib is deprecated, https://github.com/NixOS/nixpkgs/issues/108938 |
||
Line 282: | Line 282: | ||
cat >default.nix <<EOF | cat >default.nix <<EOF | ||
with import <nixpkgs> { }; | with import <nixpkgs> { }; | ||
lib.overrideDerivation foobar (oldAttrs : { | |||
src = ./foobar; | src = ./foobar; | ||
}) | }) | ||
Line 303: | Line 303: | ||
=== Comparison of secret managing schemes === | === Comparison of secret managing schemes === | ||
Manage [https://nixos.wiki/wiki/Comparison_of_secret_managing_schemes secrets] in your (system) configuration. That page tries to give an overview of different schemes that can be used and outlines the aims, requirements and implications of each. | Manage [https://nixos.wiki/wiki/Comparison_of_secret_managing_schemes secrets] in your (system) configuration. That page tries to give an overview of different schemes that can be used and outlines the aims, requirements and implications of each. | ||
== Working with the nix store == | == Working with the nix store == |