summaryrefslogtreecommitdiff
path: root/home-manager/modules/foot.nix
diff options
context:
space:
mode:
authorname <[email protected]>2026-10-19 13:35:26 +0200
committername <[email protected]>2026-10-19 13:35:26 +0200
commit57ed93d17c8072da3e1e1b3f02cb5c014cadc10e (patch)
treea0c958a5c971d202a384c66fbb6732db5dbcc4a2 /home-manager/modules/foot.nix
parenta45633ee3dcad929593619e490ae3d240c45b0a9 (diff)
downloadnixos-57ed93d17c8072da3e1e1b3f02cb5c014cadc10e.tar.xz
nixos-57ed93d17c8072da3e1e1b3f02cb5c014cadc10e.zip
added host specific foot configs
Diffstat (limited to 'home-manager/modules/foot.nix')
-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
}