-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
91 changed files
with
7,932 additions
and
4,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14169,6 +14169,12 @@ | |
githubId = 9636071; | ||
name = "Myrl Hex"; | ||
}; | ||
mzacho = { | ||
email = "[email protected]"; | ||
github = "mzacho"; | ||
githubId = 16916972; | ||
name = "Martin Zacho"; | ||
}; | ||
n00b0ss = { | ||
email = "[email protected]"; | ||
github = "n00b0ss"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
config, | ||
lib, | ||
pkgs, | ||
... | ||
}: | ||
|
||
let | ||
cfg = config.services.protonmail-bridge; | ||
in | ||
{ | ||
options.services.protonmail-bridge = { | ||
enable = lib.mkEnableOption "protonmail bridge"; | ||
|
||
package = lib.mkPackageOption pkgs "protonmail-bridge" { }; | ||
|
||
path = lib.mkOption { | ||
type = lib.types.listOf lib.types.path; | ||
default = [ ]; | ||
example = lib.literalExpression "with pkgs; [ pass gnome-keyring ]"; | ||
description = "List of derivations to put in protonmail-bride's path."; | ||
}; | ||
|
||
logLevel = lib.mkOption { | ||
type = lib.types.nullOr ( | ||
lib.types.enum [ | ||
"panic" | ||
"fatal" | ||
"error" | ||
"warn" | ||
"info" | ||
"debug" | ||
] | ||
); | ||
default = null; | ||
description = "Log level of the Proton Mail Bridge service. If set to null then the service uses it's default log level."; | ||
}; | ||
}; | ||
|
||
config = lib.mkIf cfg.enable { | ||
systemd.user.services.protonmail-bridge = { | ||
description = "protonmail bridge"; | ||
wantedBy = [ "graphical-session.target" ]; | ||
after = [ "graphical-session.target" ]; | ||
|
||
serviceConfig = | ||
let | ||
logLevel = lib.optionalString (cfg.logLevel != null) "--log-level ${cfg.logLevel}"; | ||
in | ||
{ | ||
ExecStart = "${lib.getExe cfg.package} --noninteractive ${logLevel}"; | ||
Restart = "always"; | ||
}; | ||
|
||
path = cfg.path; | ||
}; | ||
environment.systemPackages = [ cfg.package ]; | ||
}; | ||
meta.maintainers = with lib.maintainers; [ mzacho ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.