feat(home): Add substituters & other nix niceties
This commit is contained in:
parent
59e99a54a7
commit
6cbbb61e26
1 changed files with 27 additions and 9 deletions
|
@ -4,16 +4,34 @@
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.lix;
|
package = pkgs.lix;
|
||||||
|
|
||||||
# Enable flakes.
|
settings = {
|
||||||
settings.experimental-features = [
|
trusted-users = [
|
||||||
"nix-command"
|
"root"
|
||||||
"flakes"
|
config.marleyos.my.name
|
||||||
];
|
];
|
||||||
|
|
||||||
# Disable that annoying "git tree is dirty" warning.
|
# Enable flakes.
|
||||||
extraOptions = ''
|
experimental-features = [
|
||||||
warn-dirty = false
|
"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.
|
# Garbage collection.
|
||||||
gc.automatic = true;
|
gc.automatic = true;
|
||||||
|
|
Loading…
Reference in a new issue