mirror of
https://github.com/srid/nixos-config.git
synced 2026-02-04 03:53:35 +08:00
18 lines
474 B
Nix
18 lines
474 B
Nix
{ config, pkgs, rosettaPkgs, ... }:
|
|
|
|
{
|
|
# https://github.com/nix-community/nix-direnv
|
|
environment.systemPackages = with pkgs; [ direnv nix-direnv ];
|
|
# nix options for derivations to persist garbage collection
|
|
nix.extraOptions = ''
|
|
keep-outputs = true
|
|
keep-derivations = true
|
|
'';
|
|
environment.pathsToLink = [
|
|
"/share/nix-direnv"
|
|
];
|
|
nixpkgs.overlays = [
|
|
(self: super: { nix-direnv = super.nix-direnv.override { enableFlakes = true; }; })
|
|
];
|
|
|
|
}
|