snowflake/modules/nix.nix

57 lines
1.4 KiB
Nix
Raw Normal View History

2023-12-23 16:29:10 -05:00
{
lib,
pkgs,
2024-01-07 17:51:31 -05:00
inputs,
2023-12-23 16:29:10 -05:00
...
}: {
2023-04-23 17:45:37 -04:00
nixpkgs = {
2024-01-17 14:41:08 -05:00
overlays = [
inputs.nur.overlay
inputs.yazi.overlays.default
];
2023-04-22 03:21:08 -04:00
config = {
allowUnfree = true;
permittedInsecurePackages = [
"electron-25.9.0"
];
2023-04-22 03:21:08 -04:00
};
};
2023-09-24 17:17:59 -04:00
nh = {
enable = true;
2023-09-24 22:59:00 -04:00
clean = {
enable = true;
dates = "weekly";
extraArgs = "--keep-since 3d --keep 5";
};
2023-09-24 17:17:59 -04:00
};
2023-04-23 17:45:37 -04:00
nix = {
settings = {
2023-05-14 10:15:47 -04:00
extra-experimental-features = ["flakes" "nix-command"];
2023-06-19 06:33:46 -04:00
warn-dirty = false;
2023-04-22 03:21:08 -04:00
auto-optimise-store = true;
builders-use-substitutes = true;
keep-outputs = true;
2023-05-14 10:15:47 -04:00
allowed-users = ["@wheel"];
2023-04-26 21:21:46 -04:00
trusted-users = ["root" "@wheel"];
2023-04-22 03:21:08 -04:00
substituters = [
2023-04-23 17:45:37 -04:00
"https://hyprland.cachix.org"
"https://cache.nixos.org"
2023-11-15 02:00:50 -05:00
"https://nix-gaming.cachix.org"
2023-11-15 05:46:47 -05:00
"https://anyrun.cachix.org"
2023-11-30 22:28:42 -05:00
"https://viperml.cachix.org"
2024-01-05 14:44:23 -05:00
"https://cache.flake.sh/kyasshu"
2023-04-22 03:21:08 -04:00
];
trusted-public-keys = [
2023-04-23 17:45:37 -04:00
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
2023-11-15 02:00:50 -05:00
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
2023-11-15 05:46:47 -05:00
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
2023-11-30 22:28:42 -05:00
"viperml.cachix.org-1:qZhKBMTfmcLL+OG6fj/hzsMEedgKvZVFRRAhq7j8Vh8="
2024-01-05 14:44:23 -05:00
"kyasshu:g1heIgCgG7M4San6nRsz/omcVQ1GTc7+zKKm3L9Co7o="
2023-04-22 03:21:08 -04:00
];
2023-04-23 17:45:37 -04:00
};
};
}