mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-04-20 03:34:07 +02:00
update nix config
This commit is contained in:
parent
ffc20e845f
commit
32446ab218
1 changed files with 22 additions and 31 deletions
|
@ -10,12 +10,10 @@ in {
|
||||||
substituters = lib.mkForce [
|
substituters = lib.mkForce [
|
||||||
"https://cache.nixos.org"
|
"https://cache.nixos.org"
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
"http://kuraokami:5000"
|
|
||||||
];
|
];
|
||||||
trusted-public-keys = lib.mkForce [
|
trusted-public-keys = lib.mkForce [
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
"kuraokami:2H7ZvTtwBccxDW7QGzhiQk81ey7iVSjsjqVv4gn+zog="
|
|
||||||
];
|
];
|
||||||
trusted-users = [ "root" ];
|
trusted-users = [ "root" ];
|
||||||
sandbox = true;
|
sandbox = true;
|
||||||
|
@ -36,28 +34,28 @@ in {
|
||||||
keep-going = true;
|
keep-going = true;
|
||||||
builders-use-substitutes = true;
|
builders-use-substitutes = true;
|
||||||
};
|
};
|
||||||
buildMachines = [
|
# buildMachines = [
|
||||||
(rec {
|
# (rec {
|
||||||
systems = [ self.nixosConfigurations.kuraokami.config.nixpkgs.hostPlatform.system ];
|
# systems = [ self.nixosConfigurations.kuraokami.config.nixpkgs.hostPlatform.system ];
|
||||||
supportedFeatures = self.nixosConfigurations.kuraokami.config.nix.settings.system-features;
|
# supportedFeatures = self.nixosConfigurations.kuraokami.config.nix.settings.system-features;
|
||||||
maxJobs = if hostName != config.networking.hostName then 24 else 0;
|
# maxJobs = if hostName != config.networking.hostName then 24 else 0;
|
||||||
speedFactor = 20;
|
# speedFactor = 20;
|
||||||
sshKey = "/home/jopejoe1/.ssh/github";
|
# sshKey = "/home/jopejoe1/.ssh/github";
|
||||||
sshUser = "jopejoe1";
|
# sshUser = "jopejoe1";
|
||||||
hostName = "kuraokami";
|
# hostName = "kuraokami";
|
||||||
protocol = "ssh-ng";
|
# protocol = "ssh-ng";
|
||||||
})
|
# })
|
||||||
(rec {
|
# (rec {
|
||||||
systems = [ self.nixosConfigurations.zap.config.nixpkgs.hostPlatform.system ];
|
# systems = [ self.nixosConfigurations.zap.config.nixpkgs.hostPlatform.system ];
|
||||||
supportedFeatures = self.nixosConfigurations.zap.config.nix.settings.system-features;
|
# supportedFeatures = self.nixosConfigurations.zap.config.nix.settings.system-features;
|
||||||
maxJobs = if hostName != config.networking.hostName then 4 else 0;
|
# maxJobs = if hostName != config.networking.hostName then 4 else 0;
|
||||||
speedFactor = 10;
|
# speedFactor = 10;
|
||||||
sshUser = "jopejoe1";
|
# sshUser = "jopejoe1";
|
||||||
sshKey = "/home/jopejoe1/.ssh/github";
|
# sshKey = "/home/jopejoe1/.ssh/github";
|
||||||
hostName = "zap";
|
# hostName = "zap";
|
||||||
protocol = "ssh-ng";
|
# protocol = "ssh-ng";
|
||||||
})
|
# })
|
||||||
];
|
# ];
|
||||||
distributedBuilds = true;
|
distributedBuilds = true;
|
||||||
package = pkgs.nixVersions.unstable;
|
package = pkgs.nixVersions.unstable;
|
||||||
registry = lib.mkForce ((lib.mapAttrs (_: flake: { inherit flake; })) ((lib.filterAttrs (_: lib.isType "flake")) self.inputs) // {
|
registry = lib.mkForce ((lib.mapAttrs (_: flake: { inherit flake; })) ((lib.filterAttrs (_: lib.isType "flake")) self.inputs) // {
|
||||||
|
@ -77,13 +75,6 @@ in {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nix-serve = {
|
|
||||||
enable = true;
|
|
||||||
openFirewall = true;
|
|
||||||
secretKeyFile = "/var/cache-priv-key.pem";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
environment.etc = lib.mapAttrs' (name: value: { name = "nix/path/${name}"; value.source = value.flake; }) config.nix.registry;
|
environment.etc = lib.mapAttrs' (name: value: { name = "nix/path/${name}"; value.source = value.flake; }) config.nix.registry;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
Loading…
Add table
Reference in a new issue