mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
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:
parent
1f7b8188a9
commit
b5e09b85f2
1 changed files with 9 additions and 1 deletions
|
@ -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, ... }: {
|
||||
|
|
Loading…
Reference in a new issue