nixos/foot: move mkIf outside .source option
Should resolve https://github.com/NixOS/nixpkgs/pull/493708#discussion_r2935397639
This commit is contained in:
@@ -75,13 +75,16 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
environment = {
|
environment = lib.mkMerge [
|
||||||
systemPackages = [ cfg.package ];
|
{
|
||||||
etc."xdg/foot/foot.ini".source = settingsFormat.generate "foot.ini" cfg.settings;
|
systemPackages = [ cfg.package ];
|
||||||
|
etc."xdg/foot/foot.ini".source = settingsFormat.generate "foot.ini" cfg.settings;
|
||||||
etc."xdg/autostart/foot-server.desktop".source =
|
}
|
||||||
lib.mkIf cfg.xdg.serverAutostart "${cfg.package}/share/applications/foot-server.desktop";
|
(lib.mkIf cfg.xdg.serverAutostart {
|
||||||
};
|
etc."xdg/autostart/foot-server.desktop".source =
|
||||||
|
"${cfg.package}/share/applications/foot-server.desktop";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
foot.settings.main.include = lib.optionals (cfg.theme != null) [
|
foot.settings.main.include = lib.optionals (cfg.theme != null) [
|
||||||
|
|||||||
Reference in New Issue
Block a user