split nix options into a module
This commit is contained in:
parent
ab6049f578
commit
a5495be32b
2 changed files with 20 additions and 17 deletions
19
modules/system/nix.nix
Normal file
19
modules/system/nix.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ config, pkgs, ... }: {
|
||||
nix = rec {
|
||||
package = pkgs.nixUnstable;
|
||||
binaryCaches = [
|
||||
"https://cache.nixos.org?priority=10"
|
||||
"https://lava.cachix.org"
|
||||
];
|
||||
binaryCachePublicKeys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"lava.cachix.org-1:8lTWI/3IKWHByzzYHZySunMPYs2eAJw2duL+uLZkSy0="
|
||||
];
|
||||
trustedBinaryCaches = binaryCaches;
|
||||
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
};
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue