nixos/oo7: init
This commit is contained in:
@@ -593,6 +593,7 @@
|
||||
./services/desktops/linyaps.nix
|
||||
./services/desktops/malcontent.nix
|
||||
./services/desktops/neard.nix
|
||||
./services/desktops/oo7.nix
|
||||
./services/desktops/pipewire/pipewire.nix
|
||||
./services/desktops/pipewire/wireplumber.nix
|
||||
./services/desktops/playerctld.nix
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.services.oo7;
|
||||
in
|
||||
{
|
||||
options.services.oo7 = {
|
||||
enable = lib.mkEnableOption ''
|
||||
oo7, a service providing the Secret Service D-Bus API.
|
||||
'';
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.dbus.packages = [ pkgs.oo7-server ];
|
||||
|
||||
systemd.packages = [ pkgs.oo7-server ];
|
||||
|
||||
systemd.user.services.oo7-daemon.wantedBy = [ "default.target" ];
|
||||
|
||||
xdg.portal.extraPortals = [ pkgs.oo7-portal ];
|
||||
|
||||
security.pam.services.login.oo7.enable = true;
|
||||
|
||||
security.wrappers.oo7-daemon = {
|
||||
owner = "root";
|
||||
group = "root";
|
||||
capabilities = "cap_ipc_lock=ep";
|
||||
source = "${pkgs.oo7-server}/libexec/oo7-daemon";
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
inherit (pkgs.oo7.meta)
|
||||
maintainers
|
||||
;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user