From f24258b3fbfd13c2247948af05a8060e8e3db84b Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Wed, 2 Oct 2024 15:38:40 +0530 Subject: [PATCH] feat(ssh): Enable sshd for ryu and deploy target for mirai fix --- flake.nix | 8 ++++++++ linux/device.nix | 2 +- nixos/ryu.nix | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index e4ecd4cd..b16978d7 100644 --- a/flake.nix +++ b/flake.nix @@ -224,6 +224,14 @@ user = "fs0c131y"; }; }; + ryu = { + hostname = "ryu"; + profiles.system = { + sshUser = "servius"; + path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.ryu; + user = "servius"; + }; + }; }; }; diff --git a/linux/device.nix b/linux/device.nix index 602aaa4e..6e3d8f91 100644 --- a/linux/device.nix +++ b/linux/device.nix @@ -6,7 +6,7 @@ ... }: builtins.listToAttrs (builtins.map (device: { - name = device.user; + name = device.name; value = let pkgs = import inputs.nixpkgs { inherit overlays; diff --git a/nixos/ryu.nix b/nixos/ryu.nix index 2e412f31..23f84b90 100644 --- a/nixos/ryu.nix +++ b/nixos/ryu.nix @@ -38,6 +38,7 @@ services.xserver.videoDrivers = ["nvidia"]; # or "nvidiaLegacy470 etc. services.fprintd.enable = true; + services.sshd.enable = true; boot.loader.systemd-boot.consoleMode = "max"; hardware.nvidia = { # Modesetting is required.