mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
davmail: enable access to the display server (#7671)
Without this access, davmail can not display its token request dialogue.
This commit is contained in:
parent
4b6dd06c6a
commit
d9a57c597c
1 changed files with 3 additions and 5 deletions
|
|
@ -66,10 +66,7 @@ in
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
assertions = [
|
assertions = [
|
||||||
{
|
(lib.hm.assertions.assertPlatform "services.davmail" pkgs lib.platforms.linux)
|
||||||
assertion = pkgs.stdenv.hostPlatform.isLinux;
|
|
||||||
message = "The DavMail service is only available on Linux.";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.davmail.settings =
|
services.davmail.settings =
|
||||||
|
|
@ -111,7 +108,7 @@ in
|
||||||
};
|
};
|
||||||
Install.WantedBy = [ "graphical-session.target" ];
|
Install.WantedBy = [ "graphical-session.target" ];
|
||||||
Service = {
|
Service = {
|
||||||
Type = "simple";
|
Type = "exec";
|
||||||
ExecStart = "${lib.getExe cfg.package} ${settingsFile}";
|
ExecStart = "${lib.getExe cfg.package} ${settingsFile}";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
|
||||||
|
|
@ -134,6 +131,7 @@ in
|
||||||
RestrictAddressFamilies = [
|
RestrictAddressFamilies = [
|
||||||
"AF_INET"
|
"AF_INET"
|
||||||
"AF_INET6"
|
"AF_INET6"
|
||||||
|
"AF_UNIX"
|
||||||
];
|
];
|
||||||
RestrictNamespaces = true;
|
RestrictNamespaces = true;
|
||||||
RestrictRealtime = true;
|
RestrictRealtime = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue