forked from Drift/pvv-nixos-config
common/nix: flesh out
This commit is contained in:
parent
17f0268d12
commit
bf2959c68d
25
base/nix.nix
25
base/nix.nix
|
@ -1,8 +1,19 @@
|
||||||
{ 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";
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
allow-dirty = true;
|
||||||
|
auto-optimise-store = true;
|
||||||
|
builders-use-substitutes = true;
|
||||||
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
log-lines = 50;
|
||||||
|
use-xdg-base-directories = true;
|
||||||
|
};
|
||||||
|
|
||||||
/* This makes commandline tools like
|
/* This makes commandline tools like
|
||||||
** nix run nixpkgs#hello
|
** nix run nixpkgs#hello
|
||||||
|
@ -10,8 +21,10 @@
|
||||||
** use the same channel the system
|
** use the same channel the system
|
||||||
** was built with
|
** was built with
|
||||||
*/
|
*/
|
||||||
nix.registry = {
|
registry = {
|
||||||
nixpkgs.flake = inputs.nixpkgs;
|
"nixpkgs".flake = inputs.nixpkgs;
|
||||||
|
"pvv-nix".flake = inputs.self;
|
||||||
|
};
|
||||||
|
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||||
};
|
};
|
||||||
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue