From 57ed93d17c8072da3e1e1b3f02cb5c014cadc10e Mon Sep 17 00:00:00 2001 From: name Date: Mon, 19 Oct 2026 13:35:26 +0200 Subject: added host specific foot configs --- home-manager/modules/foot.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'home-manager/modules/foot.nix') diff --git a/home-manager/modules/foot.nix b/home-manager/modules/foot.nix index 90c04a6..364fd4b 100644 --- a/home-manager/modules/foot.nix +++ b/home-manager/modules/foot.nix @@ -1,3 +1,13 @@ -{ ... }: { +{ osConfig, ... }: +let + host = osConfig.networking.hostName; + hostFile = ../foot/hosts + "/${host}.ini"; + +in { xdg.configFile."foot/foot.ini".source = ../foot/foot.ini; + + xdg.configFile."foot/host.ini".source = + if builtins.pathExists hostFile + then hostFile + else ../foot/hosts/default.ini } -- cgit v1.2.3