Skip to content

Commit

Permalink
homepage with nixos host status working. Homepage ping still broken
Browse files Browse the repository at this point in the history
  • Loading branch information
yomaq committed Apr 5, 2024
1 parent a988852 commit f30b429
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions modules/hosts/tailscale/nixos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
with lib;
let
cfg = config.yomaq.tailscale;

inherit (config.networking) hostName;
in
{
config = mkMerge [
Expand All @@ -24,10 +26,10 @@ in
age.secrets.tailscaleKey.file = ( inputs.self + /secrets/tailscaleKey.age);

yomaq.homepage.groups.services."Flake Nixos Hosts" = [{
"" = {
href = "http://${cfg.TShostname}.${tailnetName}.ts.net";
ping = "${cfg.TShostname}.${tailnetName}.ts.net";
description = "${cfg.TShostname}";
" " = {
href = "http://${hostName}.${cfg.tailnetName}.ts.net";
ping = "${hostName}.${cfg.tailnetName}.ts.net";
description = "${hostName}";
};
}];
yomaq.homepage.settings = {
Expand Down

0 comments on commit f30b429

Please sign in to comment.