Files
nixos-config/modules/base/default.nix
2025-08-12 17:56:16 +00:00

55 lines
1.0 KiB
Nix

{
agenix,
pkgs,
user,
...
}: {
imports = [
agenix.darwinModules.default
];
nixpkgs = {
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"
"${user}"
];
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
'';
};
environment.systemPackages = with pkgs; [
agenix.packages."${pkgs.system}".default
];
programs.fish.enable = true;
services.tailscale = {
enable = true;
};
}