feat(home): Add substituters & other nix niceties

This commit is contained in:
punkfairie 2024-11-24 20:41:15 -08:00
parent 59e99a54a7
commit 6cbbb61e26
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696

View file

@ -4,16 +4,34 @@
nix = {
package = pkgs.lix;
# Enable flakes.
settings.experimental-features = [
"nix-command"
"flakes"
];
settings = {
trusted-users = [
"root"
config.marleyos.my.name
];
# Disable that annoying "git tree is dirty" warning.
extraOptions = ''
warn-dirty = false
'';
# Enable flakes.
experimental-features = [
"nix-command"
"flakes"
];
# Set up caches.
extra-substituters = [
"https://marleyos.cachix.org"
"https://nix-community.cachix.org"
];
trusted-public-keys = [
"marleyos.cachix.org-1:q2kEtqvS5CoQ8BmKlWOfOnN+fi4gUoSuL6HRKy37eCA="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
# Disable that annoying "git tree is dirty" warning.
warn-dirty = false;
auto-optimise-store = true;
};
# Garbage collection.
gc.automatic = true;