nixos: add nix configurations

This commit is contained in:
John Bowdre 2023-09-24 19:11:38 -05:00
parent 40afcef081
commit ef9c4cbdbb
2 changed files with 23 additions and 0 deletions

View file

@ -3,6 +3,7 @@
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
./fish.nix ./fish.nix
./locale.nix ./locale.nix
./nix.nix
./tailscale.nix ./tailscale.nix
] ++ (builtins.attrValues outputs.nixosModules); ] ++ (builtins.attrValues outputs.nixosModules);

View file

@ -0,0 +1,22 @@
{ inputs, lib, ... }:
{
nix = {
settings = {
trusted-users = [ "root" "@wheel" ];
auto-optimise-store = lib.mkDefault true;
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
warn-dirty = false;
system-features = [ "kvm" "big-parallel" "nixos-test" ];
flake-registry = "";
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than +3";
};
registry = lib.mapAttrs (_: value: { flake = value; }) inputs;
nixPath = [ "nixpkgs=${inputs.nixpkgs.outPath}" ];
};
}