forked from Drift/pvv-nixos-config
common/nix: flesh out
This commit is contained in:
parent
17f0268d12
commit
bf2959c68d
37
base/nix.nix
37
base/nix.nix
|
@ -1,17 +1,30 @@
|
||||||
{ inputs, ... }:
|
{ inputs, ... }:
|
||||||
{
|
{
|
||||||
nix.gc.automatic = true;
|
nix = {
|
||||||
nix.gc.options = "--delete-older-than 2d";
|
gc = {
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
automatic = true;
|
||||||
|
options = "--delete-older-than 2d";
|
||||||
|
};
|
||||||
|
|
||||||
/* This makes commandline tools like
|
settings = {
|
||||||
** nix run nixpkgs#hello
|
allow-dirty = true;
|
||||||
** and nix-shell -p hello
|
auto-optimise-store = true;
|
||||||
** use the same channel the system
|
builders-use-substitutes = true;
|
||||||
** was built with
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
*/
|
log-lines = 50;
|
||||||
nix.registry = {
|
use-xdg-base-directories = true;
|
||||||
nixpkgs.flake = inputs.nixpkgs;
|
};
|
||||||
|
|
||||||
|
/* This makes commandline tools like
|
||||||
|
** nix run nixpkgs#hello
|
||||||
|
** and nix-shell -p hello
|
||||||
|
** use the same channel the system
|
||||||
|
** was built with
|
||||||
|
*/
|
||||||
|
registry = {
|
||||||
|
"nixpkgs".flake = inputs.nixpkgs;
|
||||||
|
"pvv-nix".flake = inputs.self;
|
||||||
|
};
|
||||||
|
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||||
};
|
};
|
||||||
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue