mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Add flake nixConfig to nix's config
This commit is contained in:
parent
8c26fbc890
commit
98778d9fdf
1 changed files with 12 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, lib, pkgs, ... }: with lib; merge
|
{ self, inputs, lib, pkgs, ... }: with lib; merge
|
||||||
|
|
||||||
(systemConfiguration {
|
(systemConfiguration {
|
||||||
environment.etc."flakes.json".text = strings.toJSON inputs;
|
environment.etc."flakes.json".text = strings.toJSON inputs;
|
||||||
|
@ -21,17 +21,17 @@
|
||||||
flake = value;
|
flake = value;
|
||||||
}) inputs;
|
}) inputs;
|
||||||
|
|
||||||
settings.experimental-features = [
|
|
||||||
"auto-allocate-uids"
|
|
||||||
"ca-derivations"
|
|
||||||
"cgroups"
|
|
||||||
"flakes"
|
|
||||||
"nix-command"
|
|
||||||
"recursive-nix"
|
|
||||||
"repl-flake"
|
|
||||||
];
|
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
experimental-features = [
|
||||||
|
"auto-allocate-uids"
|
||||||
|
"ca-derivations"
|
||||||
|
"cgroups"
|
||||||
|
"flakes"
|
||||||
|
"nix-command"
|
||||||
|
"recursive-nix"
|
||||||
|
"repl-flake"
|
||||||
|
];
|
||||||
|
|
||||||
accept-flake-config = true;
|
accept-flake-config = true;
|
||||||
builders-use-substitutes = true;
|
builders-use-substitutes = true;
|
||||||
flake-registry = ""; # I DON'T WANT THE GLOBAL REGISTRY!!!
|
flake-registry = ""; # I DON'T WANT THE GLOBAL REGISTRY!!!
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
trusted-users = [ "root" "@wheel" ];
|
trusted-users = [ "root" "@wheel" ];
|
||||||
use-cgroups = true;
|
use-cgroups = true;
|
||||||
warn-dirty = false;
|
warn-dirty = false;
|
||||||
};
|
} // (import (self + /flake.nix)).nixConfig;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.nix-ld = enabled;
|
programs.nix-ld = enabled;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue