diff --git a/flake.nix b/flake.nix index c9f6684..2ecc9c9 100644 --- a/flake.nix +++ b/flake.nix @@ -81,6 +81,14 @@ ./home-manager/jimbo_server.nix ]; }; + # Derivation for ssh envrionments on other people's servers + "jimbo@SSH" = home-manager.lib.homeManagerConfiguration { + pkgs = nixpkgs.legacyPackages.x86_64-linux; + extraSpecialArgs = {inherit inputs outputs;}; + modules = [ + ./home-manager/jimbo_ssh.nix + ]; + }; }; }; } diff --git a/home-manager/home.nix b/home-manager/home.nix index 02747e4..9792a6d 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -3,7 +3,6 @@ {pkgs, inputs, outputs, ...}: { imports = [ # Terminal apps - ./tuiapps/git.nix ./tuiapps/zsh.nix ./tuiapps/fastfetch.nix ./tuiapps/neovim.nix diff --git a/home-manager/jimbo_desktop.nix b/home-manager/jimbo_desktop.nix index c12392e..efad4f3 100644 --- a/home-manager/jimbo_desktop.nix +++ b/home-manager/jimbo_desktop.nix @@ -3,6 +3,7 @@ # Common modules ./home.nix ./users/jimbo.nix + ./tuiapps/git.nix # GUI Apps ./misc/guifiles.nix diff --git a/home-manager/jimbo_server.nix b/home-manager/jimbo_server.nix index 4b11c63..7f13a3d 100644 --- a/home-manager/jimbo_server.nix +++ b/home-manager/jimbo_server.nix @@ -3,6 +3,7 @@ # Common modules ./home.nix ./users/jimbo.nix + ./tuiapps/git.nix ]; # Rebuild this entire system diff --git a/home-manager/jimbo_ssh.nix b/home-manager/jimbo_ssh.nix new file mode 100644 index 0000000..d84684e --- /dev/null +++ b/home-manager/jimbo_ssh.nix @@ -0,0 +1,18 @@ +{config, ...}: { + imports = [ + # Common modules + ./home.nix + ./users/jimbo.nix + ]; + + # Rebuild this entire system + programs.zsh = { + shellAliases = let + auth = import ./common/auth.nix; + in { + nixdate = '' + home-manager switch --flake ~/.home-manager/.#jimbo@JimPublic; + ''; + }; + }; +}