This commit is contained in:
2025-01-29 21:33:37 +01:00
commit a2247c5b26
30 changed files with 1036 additions and 0 deletions

18
system/nix/default.nix Normal file
View 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
View File

@@ -0,0 +1,5 @@
{
nixpkgs = {
config.allowUnfree = true;
};
}

View File

@@ -0,0 +1,11 @@
{
nix.settings = {
substituters = [
"https://cache.nixos.org?priority=10"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
];
};
}