Don't be stupid with syntaxing
This commit is contained in:
parent
1b8721c683
commit
b42fae82dc
|
@ -24,6 +24,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# This will add each flake input as a registry
|
||||||
|
# To make nix commands consistent with your flake
|
||||||
|
nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs);
|
||||||
|
|
||||||
# Enable flakes and garbage collection
|
# Enable flakes and garbage collection
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -35,10 +39,8 @@
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
options = "--delete-older-than 1w"
|
options = "--delete-older-than 1w";
|
||||||
};
|
};
|
||||||
# You can also manually optimize the store via nix-store --optimise
|
|
||||||
settings.auto-optimise-store = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Set timezone
|
# Set timezone
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{config, inputs, lib, ...}: {
|
||||||
# This will add each flake input as a registry
|
# This will add each flake input as a registry
|
||||||
# To make nix commands consistent with your flake
|
# To make nix commands consistent with your flake
|
||||||
nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs);
|
nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs);
|
||||||
|
|
Loading…
Reference in a new issue