This commit is contained in:
2025-08-14 12:33:13 +00:00
parent a397f5f13b
commit 13313035d5
47 changed files with 48 additions and 50 deletions

39
modules/core.nix Normal file
View File

@@ -0,0 +1,39 @@
{pkgs, ...}: {
programs.fish.enable = true;
nixpkgs = {
config = {
allowUnfree = true;
};
overlays = let
path = ../overlays;
in
with builtins;
map (n: import (path + ("/" + n))) (
filter (n: match ".*\\.nix" n != null || pathExists (path + ("/" + n + "/default.nix"))) (
attrNames (readDir path)
)
);
};
nix = {
package = pkgs.nix;
settings = {
trusted-users = [
"@admin"
];
substituters = [
"https://nix-community.cachix.org"
"https://cache.nixos.org"
];
trusted-public-keys = ["cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="];
};
gc = {
automatic = true;
options = "--delete-older-than 30d";
};
extraOptions = ''
experimental-features = nix-command flakes
'';
};
}