mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
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:
parent
9ad0024d4d
commit
7df6656b11
3 changed files with 3 additions and 9 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue