mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 06:18:03 +03:00
secret
This commit is contained in:
17 files changed
+556
-1
No files matched your search
@@ -0,0 +1,29 @@
|
||||
{ ... }:
|
||||
{
|
||||
flake.homeModules.home-radicle =
|
||||
{
|
||||
osConfig,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib.attrsets) optionalAttrs;
|
||||
hasSecret = (osConfig.age.secrets or { }) ? radicle-key;
|
||||
in
|
||||
{
|
||||
home.packages = [ pkgs.radicle-node ];
|
||||
home.file = {
|
||||
".radicle/config.json".text = builtins.toJSON {
|
||||
publicExplorer = "https://radicle.network/nodes/$host/$rid$path";
|
||||
preferredSeeds = [
|
||||
"z6MkrLMMsiPWUcNPHcRajuMi9mDfYckSoJyPwwnknocNYPm7@iris.radicle.network:8776"
|
||||
"z6Mkmqogy2qEM2ummccUthFEaaHvyYmYBYh3dbe9W4ebScxo@rosa.radicle.network:8776"
|
||||
];
|
||||
};
|
||||
}
|
||||
// optionalAttrs hasSecret {
|
||||
".radicle/keys/radicle".source = osConfig.age.secrets.radicle-key.path;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user