parent
fb5d4d46f8
commit
6cb66d86d2
153 changed files with 2078 additions and 3094 deletions
28
modules/nixos/core/nix.nix
Normal file
28
modules/nixos/core/nix.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ pkgs, lib, inputs, cfgPath, ... }:
|
||||
|
||||
let
|
||||
importOverlays = builtins.map
|
||||
(overlay: import overlay { inherit lib inputs pkgs cfgPath; })
|
||||
(builtins.filter
|
||||
(file: builtins.match ".*\.nix" (builtins.toString file) != null)
|
||||
(lib.filesystem.listFilesRecursive "${cfgPath}/overlays"));
|
||||
in {
|
||||
nix = {
|
||||
settings = {
|
||||
auto-optimise-store = true;
|
||||
use-xdg-base-directories = true;
|
||||
trusted-users = [ "@wheel" ];
|
||||
allowed-users = [ "@wheel" ];
|
||||
};
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
};
|
||||
nixpkgs = {
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
overlays = importOverlays;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue