mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
programs.foot: Always create config file (#2091)
foot complains if there is no config file.
This commit is contained in:
parent
42847469b3
commit
666eee4f72
3 changed files with 9 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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" ""}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue