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 0000000..c88c574 Binary files /dev/null and b/hosts/nine/github2forgejo/environment.age differ 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;