2023-04-23 17:45:37 -04:00
|
|
|
{pkgs, ...}: {
|
|
|
|
nixpkgs = {
|
2023-04-22 03:21:08 -04:00
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
permittedInsecurePackages = [
|
2023-04-23 17:45:37 -04:00
|
|
|
"qtwebkit-5.212.0-alpha4"
|
|
|
|
"electron-12.2.3"
|
2023-04-22 03:21:08 -04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-04-23 17:45:37 -04:00
|
|
|
nix = {
|
|
|
|
package = pkgs.nixFlakes;
|
|
|
|
extraOptions = ''
|
2023-04-22 03:21:08 -04:00
|
|
|
warn-dirty = false
|
2023-04-23 17:45:37 -04:00
|
|
|
'';
|
2023-04-22 03:21:08 -04:00
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
2023-04-23 17:45:37 -04:00
|
|
|
settings = {
|
2023-05-14 10:15:47 -04:00
|
|
|
extra-experimental-features = ["flakes" "nix-command"];
|
2023-04-22 03:21:08 -04:00
|
|
|
auto-optimise-store = true;
|
|
|
|
builders-use-substitutes = true;
|
|
|
|
keep-derivations = 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-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-04-22 03:21:08 -04:00
|
|
|
];
|
2023-04-23 17:45:37 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|