dconf: invoke it ourselves instead of letting dbus do it for us
This commit is contained in:
parent
4439491bf0
commit
ac22b36d78
|
@ -24,7 +24,7 @@ in
|
|||
default = {};
|
||||
};
|
||||
|
||||
# packageUnwrapped = pkgs.rmDbusServices pkgs.dconf;
|
||||
packageUnwrapped = pkgs.rmDbusServicesInPlace pkgs.dconf;
|
||||
sandbox.method = "bwrap";
|
||||
sandbox.wrapperType = "inplace"; #< dbus/systemd services live in `.out` but point to `.lib` data.
|
||||
sandbox.whitelistDbus = [ "user" ];
|
||||
|
@ -32,6 +32,19 @@ in
|
|||
".config/dconf"
|
||||
];
|
||||
|
||||
services.dconf = {
|
||||
description = "dconf configuration database/server";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${lib.getLib cfg.package}/libexec/dconf-service";
|
||||
Type = "simple";
|
||||
Restart = "always";
|
||||
RestartSec = "5s";
|
||||
};
|
||||
};
|
||||
|
||||
# supposedly necessary for packages which haven't been wrapped (i.e. wrapGtkApp?),
|
||||
# but in practice seems unnecessary.
|
||||
# env.GIO_EXTRA_MODULES = "${pkgs.dconf.lib}/lib/gio/modules";
|
||||
|
|
Loading…
Reference in New Issue
Block a user