niri/module.nix: make niri work properly
This commit is contained in:
parent
2d6727f36e
commit
e1235a2d4b
1 changed files with 20 additions and 2 deletions
|
@ -11,13 +11,31 @@ in {
|
|||
enable = true;
|
||||
};
|
||||
programs.xwayland.enable = lib.mkForce false;
|
||||
services.gnome.gnome-keyring.enable = lib.mkForce false;
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
environment.systemPackages = builtins.attrValues {
|
||||
inherit (pkgs) wmenu swaylock avizo playerctl xwayland-satellite;
|
||||
};
|
||||
|
||||
systemd.user.services.niri-polkit = {
|
||||
description = "PolicyKit Authentication Agent for niri";
|
||||
wantedBy = ["niri.service"];
|
||||
after = ["graphical-session.target"];
|
||||
partOf = ["graphical-session.target"];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 1;
|
||||
TimeoutStopSec = 10;
|
||||
};
|
||||
};
|
||||
|
||||
services.displayManager.sessionPackages = [
|
||||
cfg.package
|
||||
];
|
||||
|
||||
xdg.portal = {
|
||||
enable = lib.mkDefault true;
|
||||
enable = true;
|
||||
|
||||
configPackages = [cfg.package];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue