feat(radicle): Add option to run on unstable
For testing review in Freshly Baked, coded and I would like to run
unstable radicle
Change-Id: I614df5c138d4b60b6f4827fed9651e7e55ee84fc
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/843
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Skyler Grey <minion@clicks.codes>
diff --git a/modules/home/git/default.nix b/modules/home/git/default.nix
index 9d58ecd..8ee5e5f 100644
--- a/modules/home/git/default.nix
+++ b/modules/home/git/default.nix
@@ -13,6 +13,7 @@
stgit.enable = lib.mkEnableOption "Install StGit, a tool that makes working with stacked patches easier";
jj.enable = lib.mkEnableOption "Install jj, a git-compatible VCS, allowing powerful features, performance and stability improvements ontop of git";
radicle.enable = lib.mkEnableOption "Install Radicle, a peer-to-peer git forge";
+ radicle.unstable = lib.mkEnableOption "Install Radicle from their main branch";
auth = {
clicksUsername = lib.mkOption {
type = lib.types.str;
@@ -106,7 +107,9 @@
(if config.chimera.git.gitReview.enable then [ pkgs.git-review ] else [ ])
++ (if config.chimera.git.stgit.enable then [ pkgs.stgit ] else [ ])
++ (if config.chimera.git.jj.enable then [ inputs.jujutsu.packages.${system}.jujutsu ] else [ ])
- ++ (if config.chimera.git.radicle.enable then [ pkgs.radicle-node ] else [ ]);
+ ++ (if !config.chimera.git.radicle.enable then [ ]
+ else if config.chimera.git.radicle.unstable then [ inputs.radicle.packages.${system}.default ]
+ else [ pkgs.radicle-node ]);
programs.zsh.shellAliases =
if config.chimera.git.gitReview.enable then { "gr!" = "git review"; } else { };
diff --git a/modules/home/users/coded/default.nix b/modules/home/users/coded/default.nix
index cab136f..1304591 100644
--- a/modules/home/users/coded/default.nix
+++ b/modules/home/users/coded/default.nix
@@ -32,7 +32,10 @@
};
chimera.git = {
- radicle.enable = true;
+ radicle = {
+ enable = true;
+ unstable = true;
+ };
jj.enable = true;
gitReview.enable = true;
auth.clicksUsername = "coded";
diff --git a/modules/home/users/minion/default.nix b/modules/home/users/minion/default.nix
index ac2fa0a..02de642 100644
--- a/modules/home/users/minion/default.nix
+++ b/modules/home/users/minion/default.nix
@@ -48,7 +48,10 @@
delta.enable = true;
stgit.enable = true;
jj.enable = true;
- radicle.enable = true;
+ radicle = {
+ enable = true;
+ unstable = true;
+ };
gitReview.enable = true;
auth.clicksUsername = "minion";
gpg.enable = true;