dotfiles/machines/common/shared/nix.nix

25 lines
643 B
Nix
Raw Normal View History

{
lib,
inputs,
pkgs,
...
}: {
2023-03-02 07:30:03 +01:00
nixpkgs.config.allowUnfree = true;
nix = {
gc.automatic = true;
package = pkgs.nixVersions.nix_2_16;
settings =
{
auto-optimise-store = pkgs.stdenv.isLinux;
experimental-features = ["auto-allocate-uids" "flakes" "nix-command" "repl-flake"];
trusted-users = ["@staff" "@sudo" "@wheel"];
use-xdg-base-directories = true;
warn-dirty = false;
}
// ((import ../../../flake.nix).nixConfig);
2023-02-13 23:33:09 +01:00
};
# set nixPath to the flake nixpkgs without channels
environment.variables.NIX_PATH = lib.mkForce "nixpkgs=${inputs.nixpkgs.outPath}";
2023-02-13 23:33:09 +01:00
}