mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00: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 {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
xdg.configFile."foot/foot.ini" = {
|
xdg.configFile."foot/foot.ini" = mkIf (cfg.settings != { }) {
|
||||||
source = iniFormat.generate "foot.ini" cfg.settings;
|
source = iniFormat.generate "foot.ini" cfg.settings;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -10,10 +10,7 @@ with lib;
|
||||||
[ (self: super: { foot = pkgs.writeScriptBin "dummy-foot" ""; }) ];
|
[ (self: super: { foot = pkgs.writeScriptBin "dummy-foot" ""; }) ];
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
assertFileExists home-files/.config/foot/foot.ini
|
assertPathNotExists home-files/.config/foot
|
||||||
assertFileContent \
|
|
||||||
home-files/.config/foot/foot.ini \
|
|
||||||
${builtins.toFile "test" ""}
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,10 +11,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
assertFileExists home-files/.config/foot/foot.ini
|
assertPathNotExists home-files/.config/foot/foot.ini
|
||||||
assertFileContent \
|
|
||||||
home-files/.config/foot/foot.ini \
|
|
||||||
${builtins.toFile "test" ""}
|
|
||||||
|
|
||||||
assertFileContent \
|
assertFileContent \
|
||||||
home-files/.config/systemd/user/foot.service \
|
home-files/.config/systemd/user/foot.service \
|
||||||
|
|
Loading…
Reference in a new issue