mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
update nixos example for 22.11
This commit is contained in:
parent
6b035d2773
commit
171b729d28
1 changed files with 4 additions and 4 deletions
|
|
@ -107,10 +107,10 @@ In `/etc/nixos/configuration.nix`:
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
environment.systemPackages = with pkgs; [ direnv nix-direnv ];
|
environment.systemPackages = with pkgs; [ direnv nix-direnv ];
|
||||||
# nix options for derivations to persist garbage collection
|
# nix options for derivations to persist garbage collection
|
||||||
nix.extraOptions = ''
|
nix.settings = {
|
||||||
keep-outputs = true
|
keep-outputs = true;
|
||||||
keep-derivations = true
|
keep-derivations = true;
|
||||||
'';
|
}
|
||||||
environment.pathsToLink = [
|
environment.pathsToLink = [
|
||||||
"/share/nix-direnv"
|
"/share/nix-direnv"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue