programs.foot: Always create config file (#2091)

foot complains if there is no config file.
This commit is contained in:
Rosario Pulella 2021-06-10 12:40:36 -04:00 committed by GitHub
parent 42847469b3
commit 666eee4f72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

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

View File

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

View File

@ -11,7 +11,10 @@ in {
};
nmt.script = ''
assertPathNotExists home-files/.config/foot/foot.ini
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 \