mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 13:13:26 +00:00
666eee4f72
foot complains if there is no config file.
24 lines
564 B
Nix
24 lines
564 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
package = pkgs.writeShellScriptBin "dummy-foot" "" // { outPath = "@foot@"; };
|
|
in {
|
|
config = {
|
|
programs.foot = {
|
|
inherit package;
|
|
enable = true;
|
|
server.enable = true;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/foot/foot.ini
|
|
assertFileContent \
|
|
home-files/.config/foot/foot.ini \
|
|
${builtins.toFile "test" ""}
|
|
|
|
assertFileContent \
|
|
home-files/.config/systemd/user/foot.service \
|
|
${./systemd-user-service-expected.service}
|
|
'';
|
|
};
|
|
}
|