From ed04add0ce5711855444fb91275e830bb391de0d Mon Sep 17 00:00:00 2001 From: pegasust Date: Mon, 14 Nov 2022 00:51:25 -0700 Subject: [PATCH] ssh: add nyx settings --- home-nix/flake.nix | 18 ++++++++++++++++-- ssh/config | 6 +++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/home-nix/flake.nix b/home-nix/flake.nix index 3ca6a37..1cb0a15 100644 --- a/home-nix/flake.nix +++ b/home-nix/flake.nix @@ -32,8 +32,22 @@ lib = (import ../lib-nix { inherit pkgs from-yaml; lib = pkgs.lib; }); in rec { - inherit pkgs; - inherit lib; + homeConfigurations.nyx = home-manager.lib.homeManagerConfiguration { + inherit pkgs; + modules = [ + ./home.nix + ]; + # optionally pass inarguments to module + # we migrate this from in-place modules to allow flexibility + # in this case, we can add "home" to input arglist of home.nix + extraSpecialArgs = { + myLib = lib; + myHome = { + username = "nyx"; + homeDirectory = "/home/nyx"; + }; + }; + }; homeConfigurations.nixos = home-manager.lib.homeManagerConfiguration { inherit pkgs; modules = [ diff --git a/ssh/config b/ssh/config index d88d67b..4b829a5 100644 --- a/ssh/config +++ b/ssh/config @@ -38,8 +38,8 @@ Host nyx User nyx Port 22 -Host ocolo-lab-2 - HostName 139.144.18.164 - User root +Host lizzi + HostName 172.105.135.218 + User hungtr Port 22