Skip to content

Commit

Permalink
home: aftix: prefix docs with nixos hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
aftix committed Nov 21, 2024
1 parent f474570 commit 3bf9f91
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion home/aftix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@ in {
};
docs = {
enable = true;
prefix = "hamilton";
prefix = let
host = config.my.nixosCfg.networking.hostName or "";
in
if host == ""
then "nixos"
else host;
};
};

Expand Down

0 comments on commit 3bf9f91

Please sign in to comment.