mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-30 21:00:42 +00:00
Add various system-wide wayland settings
This commit is contained in:
parent
df09ddc1b4
commit
12ae728903
9 changed files with 141 additions and 0 deletions
29
system/roles/workstation/display/wayland/services.nix
Normal file
29
system/roles/workstation/display/wayland/services.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf getExe;
|
||||
|
||||
cfgEnabled = config.myOptions.home-manager.wms.isWayland;
|
||||
in {
|
||||
config = mkIf cfgEnabled {
|
||||
systemd.services = {
|
||||
# Seat management daemon
|
||||
# (Takes care of mediating access to shared devices (graphics, input), without requiring
|
||||
# applications like Wayland compositors being granted root privileges)
|
||||
seatd = {
|
||||
enable = true;
|
||||
description = "Seat management daemon";
|
||||
script = "${getExe pkgs.seatd} -g wheel";
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
Restart = "always";
|
||||
RestartSec = "1";
|
||||
};
|
||||
wantedBy = ["multi-user.target"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue