diff options
| author | name <[email protected]> | 2026-10-19 13:35:26 +0200 |
|---|---|---|
| committer | name <[email protected]> | 2026-10-19 13:35:26 +0200 |
| commit | 57ed93d17c8072da3e1e1b3f02cb5c014cadc10e (patch) | |
| tree | a0c958a5c971d202a384c66fbb6732db5dbcc4a2 /home-manager/modules | |
| parent | a45633ee3dcad929593619e490ae3d240c45b0a9 (diff) | |
| download | nixos-57ed93d17c8072da3e1e1b3f02cb5c014cadc10e.tar.xz nixos-57ed93d17c8072da3e1e1b3f02cb5c014cadc10e.zip | |
added host specific foot configs
Diffstat (limited to 'home-manager/modules')
| -rw-r--r-- | home-manager/modules/foot.nix | 12 |
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 } |
