2021-11-21 14:33:20 +01:00
|
|
|
{ pkgs, ... }: {
|
2022-05-26 18:33:38 +02:00
|
|
|
# Idk why tf I need to add this here
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [
|
|
|
|
"nodejs-12.22.12"
|
|
|
|
];
|
|
|
|
|
|
|
|
home-manager.users.adrielus = {
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [
|
|
|
|
"nodejs-12.22.12"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2021-11-21 14:33:20 +01:00
|
|
|
nix = {
|
2022-04-05 20:17:08 +02:00
|
|
|
# Emanble nix flakes
|
|
|
|
package = pkgs.nixFlakes;
|
|
|
|
|
2021-11-21 14:33:20 +01:00
|
|
|
trustedUsers = [ "root" "adrielus" "@wheel" ];
|
2022-04-05 20:17:08 +02:00
|
|
|
|
2021-11-21 14:33:20 +01:00
|
|
|
autoOptimiseStore = true;
|
|
|
|
optimise.automatic = true;
|
2022-04-05 20:17:08 +02:00
|
|
|
gc.automatic = true;
|
2021-11-21 14:33:20 +01:00
|
|
|
|
2022-04-05 20:17:08 +02:00
|
|
|
# Protect nix-shell from garbage collection
|
|
|
|
# TODO: look into whether this is still needed when using nix flakes
|
2021-11-21 14:33:20 +01:00
|
|
|
extraOptions = ''
|
2022-04-05 20:17:08 +02:00
|
|
|
keep-outputs = true
|
|
|
|
keep-derivations = true
|
2021-11-21 14:33:20 +01:00
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
2022-04-04 01:10:26 +02:00
|
|
|
|
|
|
|
# Caching and whatnot
|
|
|
|
binaryCaches = [
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
"https://cm-idris2-pkgs.cachix.org"
|
|
|
|
"https://cache.nixos.org"
|
2022-05-10 14:28:36 +02:00
|
|
|
# "https://all-hies.cachix.org" # Do I even use all-hies anymore?
|
2022-04-04 01:10:26 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
binaryCachePublicKeys = [
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
"cm-idris2-pkgs.cachix.org-1:YB2oJSEsD5oMJjAESxolC2GQtE6B5I6jkWhte2gtXjk="
|
2022-05-10 14:28:36 +02:00
|
|
|
# "all-hies.cachix.org-1:JjrzAOEUsD9ZMt8fdFbzo3jNAyEWlPAwdVuHw4RD43k="
|
2022-04-04 01:10:26 +02:00
|
|
|
];
|
2021-11-21 14:33:20 +01:00
|
|
|
};
|
|
|
|
}
|