23 lines
623 B
Nix
23 lines
623 B
Nix
{ config, lib, inputs, ... }:
|
|
|
|
let
|
|
inherit (lib) mkIf mapAttrs mkDefault;
|
|
host = config.systemModules.host;
|
|
in
|
|
|
|
{
|
|
config = mkIf (host.type != "phone") {
|
|
nix = {
|
|
settings = {
|
|
trusted-users = [ "root" "@wheel" ];
|
|
auto-optimise-store = mkDefault true;
|
|
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
|
warn-dirty = false;
|
|
system-features = [ "kvm" "big-parallel" "nixos-test" ];
|
|
flake-registry = "";
|
|
};
|
|
registry = mapAttrs (_: value: { flake = value; }) inputs;
|
|
nixPath = [ "nixpkgs=${inputs.nixpkgs.outPath}" ];
|
|
};
|
|
};
|
|
}
|