From 4b4a39fcdf235142ae51cdd42e9015e82feae10a Mon Sep 17 00:00:00 2001 From: RGBCube Date: Wed, 29 May 2024 10:39:04 +0300 Subject: [PATCH] Add github2forgejo --- .gitignore | 1 + flake.lock | 47 +++++++++++++++++-- flake.nix | 6 +++ hosts/nine/github2forgejo/environment.age | Bin 0 -> 664 bytes hosts/nine/github2forgejo/github2forgejo.nix | 12 +++++ secrets.nix | 2 + 6 files changed, 63 insertions(+), 5 deletions(-) create mode 100644 hosts/nine/github2forgejo/environment.age create mode 100644 hosts/nine/github2forgejo/github2forgejo.nix diff --git a/.gitignore b/.gitignore index e81c63e..54383a6 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ !hosts/enka/ !hosts/nine/ +!hosts/nine/github2forgejo/ !modules/ !modules/hyprland/ diff --git a/flake.lock b/flake.lock index 33e324e..fd03754 100644 --- a/flake.lock +++ b/flake.lock @@ -247,7 +247,7 @@ }, "flake-utils_5": { "inputs": { - "systems": "systems_5" + "systems": "systems_6" }, "locked": { "lastModified": 1710146030, @@ -314,6 +314,27 @@ "type": "github" } }, + "github2forgejo": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ], + "systems": "systems_3" + }, + "locked": { + "lastModified": 1716972023, + "narHash": "sha256-bB1+bbikRBef+UuHgeYRB45wyihWk9xDHa61QBfpKXc=", + "owner": "RGBCube", + "repo": "GitHub2Forgejo", + "rev": "0d99ad2dca2a2c3f78a4ae50e9af5a0748c76cac", + "type": "github" + }, + "original": { + "owner": "RGBCube", + "repo": "GitHub2Forgejo", + "type": "github" + } + }, "gitignore": { "inputs": { "nixpkgs": [ @@ -412,7 +433,7 @@ "hyprlang": "hyprlang", "hyprwayland-scanner": "hyprwayland-scanner", "nixpkgs": "nixpkgs_2", - "systems": "systems_3", + "systems": "systems_4", "xdph": "xdph" }, "locked": { @@ -653,6 +674,7 @@ "fenix": "fenix", "ghostty": "ghostty", "ghosttyModule": "ghosttyModule", + "github2forgejo": "github2forgejo", "homeManager": "homeManager", "hyprland": "hyprland", "hyprpicker": "hyprpicker", @@ -734,6 +756,21 @@ } }, "systems_3": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_4": { "locked": { "lastModified": 1689347949, "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", @@ -748,7 +785,7 @@ "type": "github" } }, - "systems_4": { + "systems_5": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", @@ -763,7 +800,7 @@ "type": "github" } }, - "systems_5": { + "systems_6": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", @@ -795,7 +832,7 @@ }, "utils": { "inputs": { - "systems": "systems_4" + "systems": "systems_5" }, "locked": { "lastModified": 1709126324, diff --git a/flake.nix b/flake.nix index 40eaca8..945154e 100644 --- a/flake.nix +++ b/flake.nix @@ -45,6 +45,12 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + github2forgejo = { + url = "github:RGBCube/GitHub2Forgejo"; + + inputs.nixpkgs.follows = "nixpkgs"; + }; + hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; hyprpicker.url = "github:hyprwm/hyprpicker"; diff --git a/hosts/nine/github2forgejo/environment.age b/hosts/nine/github2forgejo/environment.age new file mode 100644 index 0000000000000000000000000000000000000000..c88c5743e7ee1f885e9e118b11d925d59cd27704 GIT binary patch literal 664 zcmYdHPt{G$OD?J`D9Oyv)5|YP*Do{V(zR14F3!+RO))YxHMCSnaSYCJ3REah%FN00 z^9#?&N;9?aj7)P2G-_Ajmn)z?Um2G^#{9GsUH%)Y8$|#mmyW%&aP< zD&H|UC(zj~$h*+X$0(@S-y|Y4rx@L~G}EvuUq^-D6vJ{?qs%D3w3JLg)9gsMlt}HU zqO4NSv_wDc?F^;EMKmO>_9`06xRS>bFUP0SKrXkiky<<$U?)&%n1LA z2=f99cc);3%&5#9|4=SnU0nsEkTB0ML%;MqbMuH~v*eI6pRl5eP)qH6UvC3P3*Q{m z0^d;cvZAsgGe<7-^8af5dd<;Xzn^X1&^lY&74Y8hPPZ?6LZIPSI#eDLSL7@rDO@5V^Z|4&XhZA{tuh+1-?|np3Ne%hx?%uxcmd)7 literal 0 HcmV?d00001 diff --git a/hosts/nine/github2forgejo/github2forgejo.nix b/hosts/nine/github2forgejo/github2forgejo.nix new file mode 100644 index 0000000..d47eecf --- /dev/null +++ b/hosts/nine/github2forgejo/github2forgejo.nix @@ -0,0 +1,12 @@ +{ config, lib, ... }: with lib; + +systemConfiguration { + secrets.github2forgejoEnvironment = { + file = ./environment.age; + owner = "github2forgejo"; + }; + + services.github2forgejo = enabled { + environmentFile = config.secrets.github2forgejoEnvironment.path; + }; +} diff --git a/secrets.nix b/secrets.nix index c68cd90..0c98bd3 100644 --- a/secrets.nix +++ b/secrets.nix @@ -30,6 +30,8 @@ with import ./keys.nix; { "hosts/nine/id.age".publicKeys = [ nine ] ++ admins; "hosts/nine/password.seven.age".publicKeys = [ nine ] ++ admins; + "hosts/nine/github2forgejo/environment.age".publicKeys = [ nine ] ++ admins; + # shared "modules/ssh/config.age".publicKeys = all; "modules/restic/password.age".publicKeys = all;