home-manager/tests/modules/programs/foot/systemd-user-service.nix
Rosario Pulella 7df6656b11
foot: revert always create config file (#2091) (#2157)
This reverts commit 666eee4f72 (#2091).

As of NixOS/nixpkgs#128121, which incorporated changes from:
https://codeberg.org/dnkl/foot/pulls/588/, foot no longer
errors if there is no config file.
2021-07-01 12:05:37 -06:00

22 lines
461 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 = ''
assertPathNotExists home-files/.config/foot/foot.ini
assertFileContent \
home-files/.config/systemd/user/foot.service \
${./systemd-user-service-expected.service}
'';
};
}