1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

firefox: only add Version = 2 on non-darwin
Some checks are pending
GitHub Pages / publish (ubuntu-latest) (push) Waiting to run

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 = { General = {
StartWithLastProfile = 1; 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 { profiles = mkOption {
inherit visible; inherit visible;
type = types.attrsOf (types.submodule ({ config, name, ... }: { type = types.attrsOf (types.submodule ({ config, name, ... }: {