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.
This commit is contained in:
Rosario Pulella 2021-07-01 14:05:37 -04:00 committed by GitHub
parent 9ad0024d4d
commit 7df6656b11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 9 deletions

View File

@ -51,7 +51,7 @@ in {
config = mkIf cfg.enable {
home.packages = [ cfg.package ];
xdg.configFile."foot/foot.ini" = {
xdg.configFile."foot/foot.ini" = mkIf (cfg.settings != { }) {
source = iniFormat.generate "foot.ini" cfg.settings;
};

View File

@ -10,10 +10,7 @@ with lib;
[ (self: super: { foot = pkgs.writeScriptBin "dummy-foot" ""; }) ];
nmt.script = ''
assertFileExists home-files/.config/foot/foot.ini
assertFileContent \
home-files/.config/foot/foot.ini \
${builtins.toFile "test" ""}
assertPathNotExists home-files/.config/foot
'';
};
}

View File

@ -11,10 +11,7 @@ in {
};
nmt.script = ''
assertFileExists home-files/.config/foot/foot.ini
assertFileContent \
home-files/.config/foot/foot.ini \
${builtins.toFile "test" ""}
assertPathNotExists home-files/.config/foot/foot.ini
assertFileContent \
home-files/.config/systemd/user/foot.service \