2021-01-21 22:13:53 +04:00
|
|
|
{ lib, inputs, ... }: {
|
|
|
|
nix = rec {
|
2021-06-12 13:50:36 +04:00
|
|
|
nixPath = lib.mkForce [ "self=/etc/self/compat" "nixpkgs=/etc/nixpkgs" ];
|
2021-01-21 22:13:53 +04:00
|
|
|
binaryCaches = [ "https://cache.nixos.org" ];
|
|
|
|
|
|
|
|
registry.self.flake = inputs.self;
|
2021-06-12 13:50:36 +04:00
|
|
|
registry.nixpkgs.flake = inputs.nixpkgs;
|
2021-01-21 22:13:53 +04:00
|
|
|
|
|
|
|
trustedUsers = [ "root" "balsoft" "@wheel" ];
|
|
|
|
|
|
|
|
nrBuildUsers = 16;
|
|
|
|
|
|
|
|
optimise.automatic = true;
|
|
|
|
|
2021-03-11 02:57:37 +04:00
|
|
|
binaryCachePublicKeys = [
|
|
|
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
|
|
];
|
2021-01-21 22:13:53 +04:00
|
|
|
|
|
|
|
package = inputs.nix.packages.x86_64-linux.nix;
|
|
|
|
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
2021-03-11 02:57:37 +04:00
|
|
|
requireSignedBinaryCaches = true;
|
2021-01-21 22:13:53 +04:00
|
|
|
};
|
2021-06-08 20:35:21 +04:00
|
|
|
|
|
|
|
persist.state.homeFiles = [ ".local/share/nix/repl-history" ];
|
|
|
|
|
2021-01-21 22:13:53 +04:00
|
|
|
environment.etc.nixpkgs.source = inputs.nixpkgs;
|
2021-06-03 23:37:14 +04:00
|
|
|
environment.etc.self.source = inputs.self;
|
2021-01-21 22:13:53 +04:00
|
|
|
}
|