From e413d1de3fe7e2aeb58b44e7ad839e7390cad699 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Mon, 15 Jan 2024 17:26:44 -0600 Subject: [PATCH] feat: ugit Signed-off-by: jolheiser --- flake.lock | 71 ++++++++++++++++++++++++++++++-- flake.nix | 6 +++ machines/dragonwell/caddy.nix | 2 +- machines/dragonwell/default.nix | 3 +- machines/dragonwell/ugit.nix | 19 +++++++++ secrets/shared/ssh-config.age | Bin 1636 -> 1783 bytes 6 files changed, 95 insertions(+), 6 deletions(-) create mode 100644 machines/dragonwell/ugit.nix diff --git a/flake.lock b/flake.lock index 31d6ded..9f0afdc 100644 --- a/flake.lock +++ b/flake.lock @@ -372,6 +372,7 @@ "tclip": "tclip", "templ": "templ", "tmpl": "tmpl", + "ugit": "ugit", "website": "website", "wsl": "wsl" } @@ -394,7 +395,7 @@ "tailwind-ctp": { "inputs": { "nixpkgs": [ - "website", + "ugit", "nixpkgs" ] }, @@ -413,6 +414,27 @@ } }, "tailwind-ctp-lsp": { + "inputs": { + "nixpkgs": [ + "ugit", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1699401590, + "narHash": "sha256-nx8ExuBRUux9eXSUgkWp1LJMvA3dmA76+2xggZjHTU0=", + "ref": "refs/heads/master", + "rev": "b321333ad08bf21db242f246b10ad4a50b8fc8a0", + "revCount": 848, + "type": "git", + "url": "https://git.jojodev.com/jolheiser/tailwind-ctp-intellisense" + }, + "original": { + "type": "git", + "url": "https://git.jojodev.com/jolheiser/tailwind-ctp-intellisense" + } + }, + "tailwind-ctp-lsp_2": { "inputs": { "nixpkgs": [ "website", @@ -433,6 +455,27 @@ "url": "https://git.jojodev.com/jolheiser/tailwind-ctp-intellisense" } }, + "tailwind-ctp_2": { + "inputs": { + "nixpkgs": [ + "website", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1695841587, + "narHash": "sha256-fgiZd5AV+hi8Ne0bJ8SyAx5nppseW4aXJQEIDSr0VNA=", + "ref": "refs/heads/main", + "rev": "afca060674b20e0ccecde2d6fe88c887790219a5", + "revCount": 1, + "type": "git", + "url": "https://git.jojodev.com/jolheiser/tailwind-ctp" + }, + "original": { + "type": "git", + "url": "https://git.jojodev.com/jolheiser/tailwind-ctp" + } + }, "tclip": { "inputs": { "gomod2nix": "gomod2nix", @@ -499,6 +542,28 @@ "url": "https://git.jojodev.com/jolheiser/tmpl" } }, + "ugit": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ], + "tailwind-ctp": "tailwind-ctp", + "tailwind-ctp-lsp": "tailwind-ctp-lsp" + }, + "locked": { + "lastModified": 1705360631, + "narHash": "sha256-zDmp6FmuTI6D1XvN191rcep+9kOTPEQ5f+HHYioUQro=", + "ref": "refs/heads/main", + "rev": "c7ec799170d3d911117a00e9f9286423058aaecb", + "revCount": 4, + "type": "git", + "url": "https://git.jolheiser.com/ugit.git" + }, + "original": { + "type": "git", + "url": "https://git.jolheiser.com/ugit.git" + } + }, "website": { "inputs": { "flake-utils": [ @@ -510,8 +575,8 @@ "nur": [ "jolheiser-nur" ], - "tailwind-ctp": "tailwind-ctp", - "tailwind-ctp-lsp": "tailwind-ctp-lsp" + "tailwind-ctp": "tailwind-ctp_2", + "tailwind-ctp-lsp": "tailwind-ctp-lsp_2" }, "locked": { "lastModified": 1699404161, diff --git a/flake.nix b/flake.nix index ba810a3..7644749 100644 --- a/flake.nix +++ b/flake.nix @@ -66,6 +66,11 @@ url = "git+https://git.jojodev.com/jolheiser/gomodinit"; inputs.nixpkgs.follows = "nixpkgs"; }; + ugit = { + url = "git+https://git.jolheiser.com/ugit.git"; + #url = "git+https://git.jojodev.com/jolheiser/ugit.git"; + inputs.nixpkgs.follows = "nixpkgs"; + }; # Other flakes golink = { url = "github:tailscale/golink"; @@ -232,6 +237,7 @@ dragonwell = { imports = [ inputs.golink.nixosModules.default + inputs.ugit.nixosModules.default ./machines/dragonwell ]; }; diff --git a/machines/dragonwell/caddy.nix b/machines/dragonwell/caddy.nix index b5d0176..6b21a0f 100644 --- a/machines/dragonwell/caddy.nix +++ b/machines/dragonwell/caddy.nix @@ -45,7 +45,7 @@ }; "git.jolheiser.com" = { extraConfig = '' - redir https://git.jojodev.com/jolheiser{uri} + reverse_proxy localhost:8449 ''; }; }; diff --git a/machines/dragonwell/default.nix b/machines/dragonwell/default.nix index 64b23fe..aa5a780 100644 --- a/machines/dragonwell/default.nix +++ b/machines/dragonwell/default.nix @@ -2,7 +2,7 @@ let username = "jolheiser"; key = ''ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDfKqCWtDlS3tgvfT6hQN+ii8UtabIZ+ZNmYN+bLwIa8PHOEW5MbfaqXSlhKkSi4+7SfQDCHphw0SMfhsQ4qMEcoywZ+4niDgKlQEVkl+S/VGbLuPe92NRStkyreZBLPr3Rh7ScNlGHcmHmoV9v7725fMnsMmabGVhpGO84PwNHOfJyv2tx2h6LxFbAV8S44UQu2lc8YLWCK2UvKuRnBerBXLnDQThUUX8UuCFzb786gQzD5XDU0MENbByxiy0XdVGAC+tFXEiSIgFZlFbFYyShgdTP9MzX2MOglEi+ae+1UIFncraW7ptUey7qHFJylpHWWWvE+GTwsg2G50i0FvFj jolheiser@jolheiser''; in { - imports = [./caddy.nix ./golink.nix ./hardware.nix]; + imports = [./caddy.nix ./golink.nix ./ugit.nix ./hardware.nix]; boot.tmp.cleanOnBoot = true; zramSwap.enable = true; @@ -17,7 +17,6 @@ in { }; services.openssh.enable = true; - virtualisation.docker.enable = true; users.users = { "${username}" = { diff --git a/machines/dragonwell/ugit.nix b/machines/dragonwell/ugit.nix new file mode 100644 index 0000000..9d740e0 --- /dev/null +++ b/machines/dragonwell/ugit.nix @@ -0,0 +1,19 @@ +{ + services.ugit = { + enable = true; + openFirewall = true; + authorizedKeys = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAMAN5+UcBIQ5jQgd74yabfQRCfMToFNAfmU6M5MmFSb3C1Txkdr2lPeaev5enTm70mWrFYs2FC3oA0nWHvkxoBKzYmhRiRGPJ/6VQVaZbQP1j3MFKosCIXzN0GqVb5VPz/4jjX5hW2HWtyf4XID63rHJLmD0lwJVfxsue/wftTaSqNeCZjC9jNuDB+vlJRHsvLfk1ssiQ6V2508ZgImHG/LuS/WpMsd8zvI2vqZh4nVr9Bmc8U2B5KtOOcT/HpKRBfGPRTJyQ+vgqIx96J8ah5eK19jO/nTKiqobMkIgPiXkKyZa+Z5NzMe728sL6eTfWRimbU+sVSizVtvDdkSfx"]; + config = { + ssh.clone-url = "ugit@git.jolheiser.com"; + http.clone-url = "https://git.jolheiser.com"; + profile = { + username = "jolheiser"; + email = "john+ugit@jolheiser.com"; + links = [ + "Github,https://github.com/jolheiser" + "Gitea,https://gitea.com/jolheiser" + ]; + }; + }; + }; +} diff --git a/secrets/shared/ssh-config.age b/secrets/shared/ssh-config.age index 36801698ebb3e18261b010d254b304a76fae46c3..82cbe7362df27368a4547335d6f836bca660339d 100644 GIT binary patch delta 1702 zcmV;X23h&!4EGI?EPqX6M0jRwFj+%Yc~oRnT4HH#b!%Z}W^_nUL1|V;VsUSCF+)mj za&Sd4Q3^G3ZDT<%G&5*RVN^6pIaY02YHc-2Mld&Yc~~}9H)TOoI59JNVN!KiYYHts zAaiqQEoEdfH8n9gAb3?xb~1M$L3d|lSXEL`Hfd;3N^WC9OGZjGQfPTAaCdW6b46uj zVKR70QFJR$Mo2|83Qc%qFjaYIH#B8OYiV_NGeKxec5+yHL}W!XZ&h$iZgqHaZgEmG zNh@V@k?|K-b5wXxaZg1}M|3zsW@|TEPG@yzYfp1>WH~WaI9E_hT2?qzYeh3cb$E9Q zRxxU3P%CtJI5t#uY;RI9LPssaAi@GUjY|aRBfsGQA2h`V?t3wGeuT!XjEe` zHe_T%S7mNUOm=#0L3U?oX=PejaaBWlGBa}uN;hIQRW(pnO>sm*K{QH8VKzuwIWuf< zLqlO%Q8POVXAW3j0D==0H zT18PqWo%P_Z)rJYM|Ci7I9gg{R91OIVq{i0XL>VXcM2^nEg*U{Z7(%a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