summaryrefslogtreecommitdiff
path: root/home-manager/modules
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager/modules')
-rw-r--r--home-manager/modules/foot.nix12
1 files changed, 11 insertions, 1 deletions
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
}