From a0c08d2501e0cbe4c3d974fd550fb2b41d2d783d Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Tue, 6 Feb 2024 12:47:16 +0100 Subject: [PATCH] update hostnames --- modules/nix/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/nix/default.nix b/modules/nix/default.nix index 22c6aaa..12808a1 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -40,16 +40,16 @@ in { hostName = "kuraokami"; protocol = "ssh-ng"; }) - { + (rec { systems = [ self.nixosConfigurations.zap.config.nixpkgs.hostPlatform.system ]; 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; sshUser = "jopejoe1"; sshKey = "/home/jopejoe1/.ssh/github"; hostName = "zap"; protocol = "ssh-ng"; - } + }) ]; distributedBuilds = true; package = pkgs.nixVersions.unstable; @@ -101,10 +101,10 @@ in { systemd.services.nix-daemon.serviceConfig.LimitNOFILE = lib.mkForce 1048576000; - networking.extraHosts = '' - 192.168.191.46 zap - 192.168.191.142 kuraokami - ''; + networking.hosts = { + "192.168.191.46" = [ "zap" ]; + "192.168.191.142" = [ "kuraokami" ]; + }; }; }