firefox: only add Version = 2 on non-darwin

The `Version` field in `profiles.ini` does not seem to work on Darwin
systems.

Co-authored-by: bricked <git@bricked.dev>
This commit is contained in:
yuanwang 2024-08-09 12:52:05 -06:00 committed by Robert Helgesson
parent 1f7b8188a9
commit b5e09b85f2
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED

View file

@ -61,7 +61,8 @@ let
}) // {
General = {
StartWithLastProfile = 1;
Version = 2;
} // lib.optionalAttrs (cfg.profileVersion == null) {
Version = cfg.profileVersion;
};
};
@ -342,6 +343,13 @@ in {
};
});
profileVersion = mkOption {
internal = true;
type = types.nullOr types.ints.unsigned;
default = if isDarwin then null else 2;
description = "profile version, set null for nix-darwin";
};
profiles = mkOption {
inherit visible;
type = types.attrsOf (types.submodule ({ config, name, ... }: {