1
Fork 0
nixos-system-config/modules/nixos/core/nix.nix
2025-01-23 15:37:28 +01:00

39 lines
985 B
Nix

{ lib, inputs, ... }:
let
/*
importOverlays = builtins.map
(overlay: import overlay { inherit lib inputs; })
(builtins.filter
(file: builtins.match ".*\.nix" (builtins.toString file) != null)
(lib.filesystem.listFilesRecursive ../../../overlays));
*/
/*
importOverlays =
(builtins.filter
(file: builtins.match ".*\.nix" (builtins.toString file) != null)
(lib.filesystem.listFilesRecursive ../../../overlays));
*/
c = builtins.trace ../../../overlays;
a = builtins.trace (lib.filesystem.listFilesRecursive ./.) null;
in {
nix = {
settings = {
auto-optimise-store = true;
use-xdg-base-directories = true;
trusted-users = [ "@wheel" ];
allowed-users = [ "@wheel" ];
};
extraOptions = ''
experimental-features = nix-command flakes
'';
};
b = c;
nixpkgs = {
config = {
allowUnfree = true;
};
hostPlatform = lib.mkDefault "x86_64-linux";
overlays = [];
};
}