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
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:
parent
1f7b8188a9
commit
b5e09b85f2
1 changed files with 9 additions and 1 deletions
|
@ -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, ... }: {
|
||||||
|
|
Loading…
Reference in a new issue