1
Fork 0
nixos-system-config/modules/nixos/core/nix.nix

41 lines
1,012 B
Nix
Raw Normal View History

2025-01-23 15:46:27 +01:00
{ lib, inputs, rootDir, ... }:
2025-01-10 23:38:56 +01:00
2025-01-23 14:46:22 +01:00
let
2025-01-23 15:10:27 +01:00
/*
2025-01-23 14:46:22 +01:00
importOverlays = builtins.map
2025-01-23 15:04:02 +01:00
(overlay: import overlay { inherit lib inputs; })
2025-01-23 14:46:22 +01:00
(builtins.filter
2025-01-23 15:04:02 +01:00
(file: builtins.match ".*\.nix" (builtins.toString file) != null)
2025-01-23 14:46:22 +01:00
(lib.filesystem.listFilesRecursive ../../../overlays));
2025-01-23 15:10:27 +01:00
*/
2025-01-23 15:23:28 +01:00
/*
2025-01-23 15:10:27 +01:00
importOverlays =
(builtins.filter
(file: builtins.match ".*\.nix" (builtins.toString file) != null)
(lib.filesystem.listFilesRecursive ../../../overlays));
2025-01-23 15:23:28 +01:00
*/
2025-01-23 15:46:27 +01:00
c = builtins.trace "${rootDir}/overlays" null;
2025-01-23 15:35:08 +01:00
a = builtins.trace (lib.filesystem.listFilesRecursive ./.) null;
2025-01-23 14:46:22 +01:00
in {
2025-01-10 23:38:56 +01:00
nix = {
settings = {
auto-optimise-store = true;
use-xdg-base-directories = true;
trusted-users = [ "@wheel" ];
allowed-users = [ "@wheel" ];
};
2025-01-19 13:18:30 +01:00
extraOptions = ''
experimental-features = nix-command flakes
'';
2025-01-10 23:38:56 +01:00
};
2025-01-23 15:37:28 +01:00
b = c;
2025-01-23 15:40:48 +01:00
d = a;
2025-01-10 23:38:56 +01:00
nixpkgs = {
config = {
allowUnfree = true;
};
hostPlatform = lib.mkDefault "x86_64-linux";
2025-01-23 15:08:49 +01:00
overlays = [];
2025-01-10 23:38:56 +01:00
};
}