refactor(nix): move nix.conf stuff to flake
This commit is contained in:
parent
3d99f57043
commit
c3060dd767
2 changed files with 13 additions and 4 deletions
|
@ -25,7 +25,6 @@
|
||||||
#useXkbConfig = true; # use xkbOptions in tty.
|
#useXkbConfig = true; # use xkbOptions in tty.
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
|
|
|
@ -24,10 +24,20 @@
|
||||||
specialArgs = attrs;
|
specialArgs = attrs;
|
||||||
modules = [
|
modules = [
|
||||||
({ ... }: {
|
({ ... }: {
|
||||||
nix.registry = {
|
nix = {
|
||||||
nixpkgs.flake = self.inputs.nixpkgs;
|
# Edit nix.conf
|
||||||
|
settings = {
|
||||||
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
keep-outputs = true;
|
||||||
|
auto-optimise-store = true;
|
||||||
|
warn-dirty = false;
|
||||||
|
};
|
||||||
|
|
||||||
# Minimize dowloads of indirect nixpkgs flakes
|
# Minimize dowloads of indirect nixpkgs flakes
|
||||||
nixpkgs.exact = false;
|
registry = {
|
||||||
|
nixpkgs.flake = self.inputs.nixpkgs;
|
||||||
|
nixpkgs.exact = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue