mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-11-13 22:02:17 +00:00
nixos: add nix configurations
This commit is contained in:
parent
40afcef081
commit
ef9c4cbdbb
2 changed files with 23 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
inputs.home-manager.nixosModules.home-manager
|
||||
./fish.nix
|
||||
./locale.nix
|
||||
./nix.nix
|
||||
./tailscale.nix
|
||||
] ++ (builtins.attrValues outputs.nixosModules);
|
||||
|
||||
|
|
22
hosts/common/global/nix.nix
Normal file
22
hosts/common/global/nix.nix
Normal 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}" ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue