init
This commit is contained in:
18
system/nix/default.nix
Normal file
18
system/nix/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./nixpkgs.nix
|
||||
./substituters.nix
|
||||
];
|
||||
|
||||
# for flakes
|
||||
environment.systemPackages = [ pkgs.git ];
|
||||
|
||||
nix.settings = {
|
||||
auto-optimise-store = true;
|
||||
builders-use-substitutes = true;
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
|
||||
trusted-users = ["root" "@wheel"];
|
||||
};
|
||||
}
|
||||
5
system/nix/nixpkgs.nix
Normal file
5
system/nix/nixpkgs.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
}
|
||||
11
system/nix/substituters.nix
Normal file
11
system/nix/substituters.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
nix.settings = {
|
||||
substituters = [
|
||||
"https://cache.nixos.org?priority=10"
|
||||
];
|
||||
|
||||
trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user