diff --git a/m/common/base/ssh.nix b/m/common/base/ssh.nix index b5310762..92c2c70d 100644 --- a/m/common/base/ssh.nix +++ b/m/common/base/ssh.nix @@ -13,10 +13,6 @@ in Host bscpm02.bsc.es bscpm03.bsc.es bscpm04.bsc.es gitlab-internal.bsc.es alya.gitlab.bsc.es User git ProxyCommand nc -X connect -x hut:23080 %h %p - - # Connect to BSC machines via hut proxy too - Host amdlogin1.bsc.es armlogin1.bsc.es hualogin1.bsc.es glogin1.bsc.es glogin2.bsc.es fpgalogin1.bsc.es - ProxyCommand nc -X connect -x hut:23080 %h %p ''; programs.ssh.knownHosts = hostsKeys // { diff --git a/m/common/base/users.nix b/m/common/base/users.nix index 229be8c7..8e2ca80b 100644 --- a/m/common/base/users.nix +++ b/m/common/base/users.nix @@ -20,6 +20,7 @@ rarias = { uid = 1880; isNormalUser = true; + linger = true; home = "/home/Computational/rarias"; description = "Rodrigo Arias"; group = "Computational"; @@ -39,7 +40,7 @@ home = "/home/Computational/arocanon"; description = "Aleix Roca"; group = "Computational"; - extraGroups = [ "wheel" ]; + extraGroups = [ "wheel" "tracing" ]; hashedPassword = "$6$hliZiW4tULC/tH7p$pqZarwJkNZ7vS0G5llWQKx08UFG9DxDYgad7jplMD8WkZh5k58i4dfPoWtnEShfjTO6JHiIin05ny5lmSXzGM/"; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF3zeB5KSimMBAjvzsp1GCkepVaquVZGPYwRIzyzaCba aleix@bsc" @@ -107,7 +108,7 @@ home = "/home/Computational/dbautist"; description = "Dylan Bautista Cases"; group = "Computational"; - hosts = [ "hut" ]; + hosts = [ "hut" "raccoon" ]; hashedPassword = "$6$a2lpzMRVkG9nSgIm$12G6.ka0sFX1YimqJkBAjbvhRKZ.Hl090B27pdbnQOW0wzyxVWySWhyDDCILjQELky.HKYl9gqOeVXW49nW7q/"; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAb+EQBoS98zrCwnGKkHKwMLdYABMTqv7q9E0+T0QmkS dbautist@bsc-848818791" @@ -143,6 +144,7 @@ groups = { Computational = { gid = 564; }; + tracing = { }; }; }; } diff --git a/m/common/xeon.nix b/m/common/xeon.nix index 30cf73c3..146e018c 100644 --- a/m/common/xeon.nix +++ b/m/common/xeon.nix @@ -2,8 +2,9 @@ # Provides the base system for a xeon node. imports = [ ./base.nix - ./xeon/fs.nix ./xeon/console.nix + ./xeon/fs.nix ./xeon/net.nix + ./xeon/ssh.nix ]; } diff --git a/m/common/xeon/ssh.nix b/m/common/xeon/ssh.nix new file mode 100644 index 00000000..86978f97 --- /dev/null +++ b/m/common/xeon/ssh.nix @@ -0,0 +1,8 @@ +{ + # Connect to intranet git hosts via proxy + programs.ssh.extraConfig = '' + # Connect to BSC machines via hut proxy too + Host amdlogin1.bsc.es armlogin1.bsc.es hualogin1.bsc.es glogin1.bsc.es glogin2.bsc.es fpgalogin1.bsc.es + ProxyCommand nc -X connect -x hut:23080 %h %p + ''; +} diff --git a/m/raccoon/configuration.nix b/m/raccoon/configuration.nix index dd15a82b..2482a164 100644 --- a/m/raccoon/configuration.nix +++ b/m/raccoon/configuration.nix @@ -3,6 +3,9 @@ { imports = [ ../common/base.nix + ../module/emulation.nix + ../module/debuginfod.nix + ../eudy/kernel/perf.nix ]; # Don't install Grub on the disk yet @@ -30,6 +33,9 @@ trusted-public-keys = [ "jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=" ]; }; + # Enable performance governor + powerManagement.cpuFreqGovernor = "performance"; + # Configure Nvidia driver to use with CUDA hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.production; hardware.graphics.enable = true; @@ -37,6 +43,18 @@ nixpkgs.config.nvidia.acceptLicense = true; services.xserver.videoDrivers = [ "nvidia" ]; + # Disable garbage collection for now + nix.gc.automatic = lib.mkForce false; + + services.openssh.settings.X11Forwarding = true; + + services.prometheus.exporters.node = { + enable = true; + enabledCollectors = [ "systemd" ]; + port = 9002; + listenAddress = "127.0.0.1"; + }; + users.motd = '' ⠀⠀⠀⠀⠀⠀⠀⣀⣀⣄⣠⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⢰⠇⡀⠀⠙⠻⡿⣦⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀⠀