Add koro node
This commit is contained in:
		
							parent
							
								
									e6bb6e735d
								
							
						
					
					
						commit
						45ac6e95e9
					
				| @ -20,6 +20,7 @@ in | |||||||
|       owl1  = mkConf "owl1"; |       owl1  = mkConf "owl1"; | ||||||
|       owl2  = mkConf "owl2"; |       owl2  = mkConf "owl2"; | ||||||
|       eudy  = mkConf "eudy"; |       eudy  = mkConf "eudy"; | ||||||
|  |       koro  = mkConf "koro"; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     packages.x86_64-linux.hut = self.nixosConfigurations.hut.pkgs; |     packages.x86_64-linux.hut = self.nixosConfigurations.hut.pkgs; | ||||||
|  | |||||||
| @ -63,7 +63,7 @@ | |||||||
|       10.0.40.104             xeon04-ipmi0 |       10.0.40.104             xeon04-ipmi0 | ||||||
|        |        | ||||||
|       # Node Entry for node: xeon05 (ID=19) |       # Node Entry for node: xeon05 (ID=19) | ||||||
|       10.0.40.5               xeon05 xeon05-eth0 |       10.0.40.5               koro xeon05 xeon05-eth0 | ||||||
|       10.0.42.5               xeon05-ib0 |       10.0.42.5               xeon05-ib0 | ||||||
|       10.0.40.105             xeon05-ipmi0 |       10.0.40.105             xeon05-ipmi0 | ||||||
|        |        | ||||||
|  | |||||||
| @ -16,6 +16,7 @@ | |||||||
|     "owl1".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMqMEXO0ApVsBA6yjmb0xP2kWyoPDIWxBB0Q3+QbHVhv"; |     "owl1".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMqMEXO0ApVsBA6yjmb0xP2kWyoPDIWxBB0Q3+QbHVhv"; | ||||||
|     "owl2".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHurEYpQzNHqWYF6B9Pd7W8UPgF3BxEg0BvSbsA7BAdK"; |     "owl2".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHurEYpQzNHqWYF6B9Pd7W8UPgF3BxEg0BvSbsA7BAdK"; | ||||||
|     "eudy".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+WYPRRvZupqLAG0USKmd/juEPmisyyJaP8hAgYwXsG"; |     "eudy".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+WYPRRvZupqLAG0USKmd/juEPmisyyJaP8hAgYwXsG"; | ||||||
|  |     "koro".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIImiTFDbxyUYPumvm8C4mEnHfuvtBY1H8undtd6oDd67"; | ||||||
| 
 | 
 | ||||||
|     "gitlab-internal.bsc.es".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF9arsAOSRB06hdy71oTvJHG2Mg8zfebADxpvc37lZo3"; |     "gitlab-internal.bsc.es".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF9arsAOSRB06hdy71oTvJHG2Mg8zfebADxpvc37lZo3"; | ||||||
|     "bscpm03.bsc.es".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM2NuSUPsEhqz1j5b4Gqd+MWFnRqyqY57+xMvBUqHYUS"; |     "bscpm03.bsc.es".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM2NuSUPsEhqz1j5b4Gqd+MWFnRqyqY57+xMvBUqHYUS"; | ||||||
|  | |||||||
							
								
								
									
										37
									
								
								m/koro/configuration.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								m/koro/configuration.nix
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,37 @@ | |||||||
|  | { config, pkgs, lib, modulesPath, ... }: | ||||||
|  | 
 | ||||||
|  | { | ||||||
|  |   imports = [ | ||||||
|  |     ../common/main.nix | ||||||
|  |     #(modulesPath + "/installer/netboot/netboot-minimal.nix") | ||||||
|  | 
 | ||||||
|  |     ../eudy/cpufreq.nix | ||||||
|  |     ../eudy/users.nix | ||||||
|  |     ../eudy/slurm.nix | ||||||
|  |     ./users.nix | ||||||
|  |     ./kernel.nix | ||||||
|  |   ]; | ||||||
|  | 
 | ||||||
|  |   # Select this using the ID to avoid mismatches | ||||||
|  |   boot.loader.grub.device = "/dev/disk/by-id/wwn-0x55cd2e414d5376d2"; | ||||||
|  | 
 | ||||||
|  |   # disable automatic garbage collector | ||||||
|  |   nix.gc.automatic = lib.mkForce false; | ||||||
|  | 
 | ||||||
|  |   # members of the tracing group can use the lttng-provided kernel events | ||||||
|  |   # without root permissions | ||||||
|  |   users.groups.tracing.members = [ "arocanon" ]; | ||||||
|  | 
 | ||||||
|  |   # set up both ethernet and infiniband ips | ||||||
|  |   networking = { | ||||||
|  |     hostName = "koro"; | ||||||
|  |     interfaces.eno1.ipv4.addresses = [ { | ||||||
|  |       address = "10.0.40.5"; | ||||||
|  |       prefixLength = 24; | ||||||
|  |     } ]; | ||||||
|  |     interfaces.ibp5s0.ipv4.addresses = [ { | ||||||
|  |       address = "10.0.42.5"; | ||||||
|  |       prefixLength = 24; | ||||||
|  |     } ]; | ||||||
|  |   }; | ||||||
|  | } | ||||||
							
								
								
									
										64
									
								
								m/koro/kernel.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										64
									
								
								m/koro/kernel.nix
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,64 @@ | |||||||
|  | { pkgs, lib, ... }: | ||||||
|  | 
 | ||||||
|  | let | ||||||
|  |   kernel = nixos-fcsv4; | ||||||
|  | 
 | ||||||
|  |   nixos-fcs-kernel = {gitCommit, lockStat ? false, preempt ? false, branch ? "fcs"}: pkgs.linuxPackagesFor (pkgs.buildLinux rec { | ||||||
|  |     version = "6.2.8"; | ||||||
|  |     src = builtins.fetchGit { | ||||||
|  |       url = "git@bscpm03.bsc.es:ompss-kernel/linux.git"; | ||||||
|  |       rev = gitCommit; | ||||||
|  |       ref = branch; | ||||||
|  |     }; | ||||||
|  |     structuredExtraConfig = with lib.kernel; { | ||||||
|  |       # add general custom kernel options here | ||||||
|  |     } // lib.optionalAttrs lockStat { | ||||||
|  |       LOCK_STAT = yes; | ||||||
|  |     } // lib.optionalAttrs preempt { | ||||||
|  |       PREEMPT = lib.mkForce yes; | ||||||
|  |       PREEMPT_VOLUNTARY = lib.mkForce no; | ||||||
|  |     }; | ||||||
|  |     kernelPatches = []; | ||||||
|  |     extraMeta.branch = lib.versions.majorMinor version; | ||||||
|  |   }); | ||||||
|  | 
 | ||||||
|  |   nixos-fcsv1 = nixos-fcs-kernel {gitCommit = "bc11660676d3d68ce2459b9fb5d5e654e3f413be";}; | ||||||
|  |   nixos-fcsv2 = nixos-fcs-kernel {gitCommit = "db0f2eca0cd57a58bf456d7d2c7d5d8fdb25dfb1";}; | ||||||
|  |   nixos-fcsv3 = nixos-fcs-kernel {gitCommit = "6c17394890704c3345ac1a521bb547164b36b154";}; | ||||||
|  |   nixos-fcsv4 = nixos-fcs-kernel {gitCommit = "c94c3d946f33ac3e5782a02ee002cc1164c0cb4f";}; | ||||||
|  | 
 | ||||||
|  |   nixos-fcsv1-lockstat = nixos-fcs-kernel { | ||||||
|  |     gitCommit = "bc11660676d3d68ce2459b9fb5d5e654e3f413be"; | ||||||
|  |     lockStat = true; | ||||||
|  |   }; | ||||||
|  |   nixos-fcsv2-lockstat = nixos-fcs-kernel { | ||||||
|  |     gitCommit = "db0f2eca0cd57a58bf456d7d2c7d5d8fdb25dfb1"; | ||||||
|  |     lockStat = true; | ||||||
|  |   }; | ||||||
|  |   nixos-fcsv3-lockstat = nixos-fcs-kernel { | ||||||
|  |     gitCommit = "6c17394890704c3345ac1a521bb547164b36b154"; | ||||||
|  |     lockStat = true; | ||||||
|  |   }; | ||||||
|  |   nixos-fcsv3-lockstat-preempt = nixos-fcs-kernel { | ||||||
|  |     gitCommit = "6c17394890704c3345ac1a521bb547164b36b154"; | ||||||
|  |     lockStat = true; | ||||||
|  |     preempt = true; | ||||||
|  |   }; | ||||||
|  |   latest = pkgs.linuxPackages_latest; | ||||||
|  | 
 | ||||||
|  | in { | ||||||
|  |   imports = [ | ||||||
|  |     ../eudy/kernel/lttng.nix | ||||||
|  |     ../eudy/kernel/perf.nix | ||||||
|  |   ]; | ||||||
|  |   boot.kernelPackages = lib.mkForce kernel; | ||||||
|  | 
 | ||||||
|  |   # disable all cpu mitigations | ||||||
|  |   boot.kernelParams = [ | ||||||
|  |     "mitigations=off" | ||||||
|  |   ]; | ||||||
|  |    | ||||||
|  |   # enable memory overcommit, needed to build a taglibc system using nix after | ||||||
|  |   # increasing the openblas memory footprint | ||||||
|  |   boot.kernel.sysctl."vm.overcommit_memory" = lib.mkForce 1; | ||||||
|  | } | ||||||
							
								
								
									
										17
									
								
								m/koro/users.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								m/koro/users.nix
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,17 @@ | |||||||
|  | { ... }: | ||||||
|  | 
 | ||||||
|  | { | ||||||
|  |   users.users = { | ||||||
|  |     vlopez = { | ||||||
|  |       uid = 4334; | ||||||
|  |       isNormalUser = true; | ||||||
|  |       home = "/home/Computational/vlopez"; | ||||||
|  |       description = "Victor López"; | ||||||
|  |       group = "Computational"; | ||||||
|  |       hashedPassword = "$6$0ZBkgIYE/renVqtt$1uWlJsb0FEezRVNoETTzZMx4X2SvWiOsKvi0ppWCRqI66S6TqMBXBdP4fcQyvRRBt0e4Z7opZIvvITBsEtO0f0"; | ||||||
|  |       openssh.authorizedKeys.keys = [ | ||||||
|  |         "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGMwlUZRf9jfG666Qa5Sb+KtEhXqkiMlBV2su3x/dXHq victor@arch" | ||||||
|  |       ]; | ||||||
|  |     }; | ||||||
|  |   }; | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user