diff --git a/devices/xmupc1/README.md b/devices/xmupc1/README.md index 0afb89e4..9c183424 100644 --- a/devices/xmupc1/README.md +++ b/devices/xmupc1/README.md @@ -97,3 +97,21 @@ scontrol top job_id # 包裹一个二进制程序 --wrap= ``` + +# ssh + +本机可以使用 ssh 登陆。 +* 地址:office.chn.moe(如果在校外,需要厦大 VPN) +* 端口:6007 +* 用户名:自己名字的拼音首字母 +* 可以用密码登陆,也可以用证书登陆。 + +要从本机登陆到学校 hpc 的 jykang 账户,使用下面的命令: + +```bash +ssh jykang +``` + +# rdp + +本机可以使用 rdp 登陆(就是 windows 那个远程桌面)。 \ No newline at end of file diff --git a/flake.nix b/flake.nix index 21f5c1f3..3b92a632 100644 --- a/flake.nix +++ b/flake.nix @@ -139,7 +139,7 @@ fastConnection = true; autoRollback = false; magicRollback = false; - nodes = builtins.listToAttrs (builtins.map + nodes = (builtins.listToAttrs (builtins.map (node: { name = node; @@ -150,7 +150,21 @@ inputs.self.nixosConfigurations.${node}; }; }) - [ "vps6" "vps7" "nas" "surface" "xmupc1" ]); + [ "vps6" "vps7" "nas" "surface" ] + )) + // { + xmupc1 = + { + hostname = "xmupc1"; + value = + { + hostname = "xmupc1"; + profiles.system.path = inputs.self.nixosConfigurations.xmupc1.pkgs.deploy-rs.lib.activate.nixos + inputs.self.nixosConfigurations.xmupc1; + remoteBuild = true; + }; + }; + }; }; checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks inputs.self.deploy) inputs.deploy-rs.lib; overlays.default = final: prev: