Skip to content

Commit

Permalink
Revert "firefox: only add Version = 2 on non-darwin"
Browse files Browse the repository at this point in the history
launchd module now creates a service that will initialize gui app
environment with sessionVariables injected by modules. Firefox module
will inject MOZ_* variables needed to handle Version=2 in the
profiles.ini config now. This makes special handling for darwin here
unnecessary.

This reverts commit b5e09b8.
  • Loading branch information
booxter committed Jan 8, 2025
1 parent 8bfa7b0 commit ff575b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
10 changes: 1 addition & 9 deletions modules/programs/firefox/mkFirefoxModule.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ let
}) // {
General = {
StartWithLastProfile = 1;
} // lib.optionalAttrs (cfg.profileVersion == null) {
Version = cfg.profileVersion;
Version = 2;
};
};

Expand Down Expand Up @@ -344,13 +343,6 @@ 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, ... }: {
Expand Down
10 changes: 1 addition & 9 deletions modules/programs/thunderbird.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ let
profilesIni = foldl recursiveUpdate {
General = {
StartWithLastProfile = 1;
} // lib.optionalAttrs (cfg.profileVersion != null) {
Version = cfg.profileVersion;
Version = 2;
};
} (flip map profilesWithId (profile: {
"Profile${profile.id}" = {
Expand Down Expand Up @@ -151,13 +150,6 @@ in {
description = "The Thunderbird package to use.";
};

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 {
type = with types;
attrsOf (submodule ({ config, name, ... }: {
Expand Down

0 comments on commit ff575b8

Please sign in to comment.