system/nix: split into stable and unstable
This commit is contained in:
parent
52dac2c01d
commit
1da1b2c9dd
5 changed files with 37 additions and 14 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
base
|
base
|
||||||
home-manager
|
home-manager
|
||||||
input
|
input
|
||||||
nix
|
nix-porcupine
|
||||||
security
|
security
|
||||||
|
|
||||||
./filesystem.nix
|
./filesystem.nix
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
base
|
base
|
||||||
home-manager
|
home-manager
|
||||||
input
|
input
|
||||||
nix
|
nix-porcupine
|
||||||
security
|
security
|
||||||
|
|
||||||
./filesystem.nix
|
./filesystem.nix
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ in {
|
||||||
./system/input.nix
|
./system/input.nix
|
||||||
./system/kernel.nix
|
./system/kernel.nix
|
||||||
./system/nix.nix
|
./system/nix.nix
|
||||||
|
./system/nix-porcupine.nix
|
||||||
./system/packages.nix
|
./system/packages.nix
|
||||||
./system/security.nix
|
./system/security.nix
|
||||||
./system/snapper.nix
|
./system/snapper.nix
|
||||||
|
|
|
||||||
19
modules/system/nix-porcupine.nix
Normal file
19
modules/system/nix-porcupine.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{ config, lib, pkgs, ... }: {
|
||||||
|
nix = rec {
|
||||||
|
package = pkgs.nix_2_4;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
@ -1,17 +1,20 @@
|
||||||
{ config, lib, pkgs, ... }: {
|
{ config, lib, pkgs, ... }: {
|
||||||
nix = rec {
|
nix = {
|
||||||
package = pkgs.nixUnstable;
|
package = pkgs.nixUnstable;
|
||||||
binaryCaches = [
|
|
||||||
"https://cache.nixos.org?priority=10"
|
settings = rec {
|
||||||
"https://lava.cachix.org"
|
substituters = [
|
||||||
"https://nix-gaming.cachix.org"
|
"https://cache.nixos.org?priority=10"
|
||||||
];
|
"https://lava.cachix.org"
|
||||||
binaryCachePublicKeys = [
|
"https://nix-gaming.cachix.org"
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
];
|
||||||
"lava.cachix.org-1:8lTWI/3IKWHByzzYHZySunMPYs2eAJw2duL+uLZkSy0="
|
trusted-public-keys = [
|
||||||
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
];
|
"lava.cachix.org-1:8lTWI/3IKWHByzzYHZySunMPYs2eAJw2duL+uLZkSy0="
|
||||||
trustedBinaryCaches = binaryCaches;
|
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
|
||||||
|
];
|
||||||
|
trusted-substituters = substituters;
|
||||||
|
};
|
||||||
|
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue