diff --git a/hosts/work.nix b/hosts/work.nix index e420a56..3b2a1c3 100644 --- a/hosts/work.nix +++ b/hosts/work.nix @@ -74,6 +74,35 @@ in { group = "users"; }; + home-manager.users.may.programs.ssh = { + enable = true; + enableDefaultConfig = false; + + matchBlocks.wt = { + hostname = "host.westminsterteak.com"; + user = "adminster"; + port = 22448; + setEnv.TERM = "xterm-256color"; + identityFile = "~/.ssh/wt_rsa"; + }; + + matchBlocks.host_wt = { + hostname = "hostv2.westminsterteak.com"; + user = "admin"; + port = 22448; + setEnv.TERM = "xterm-256color"; + identityFile = "~/.ssh/wt_ed25519"; + }; + + matchBlocks.site_wt = { + hostname = "50.28.84.195"; + user = "admin"; + port = 22450; + setEnv.TERM = "xterm-256color"; + identityFile = "~/.ssh/wt_ed25519"; + }; + }; + home-manager.users.may.wayland.windowManager.hyprland.settings.exec-once = lib.mkAfter [ (hyprOneLine '' sleep 2 diff --git a/modules/editors/vi.nix b/modules/editors/vi.nix index f39b0e3..87e4381 100644 --- a/modules/editors/vi.nix +++ b/modules/editors/vi.nix @@ -2,6 +2,7 @@ home-manager.users.may = { home.sessionVariables = { EDITOR = "nvim"; + SUDO_EDITOR = "nvim"; VISUAL = "nvim"; }; }; diff --git a/modules/ssh.nix b/modules/ssh.nix index b10809a..914b807 100644 --- a/modules/ssh.nix +++ b/modules/ssh.nix @@ -1,3 +1,3 @@ -{ pkgs, ...}: { +{ ... }: { services.openssh.enable = true; -} \ No newline at end of file +}