sxmo: run upstream set-permissions script at boot

this doesn't seem to do much in practice.
ideally upstream would include the logic for LEDs here too, but they
don't.
This commit is contained in:
2023-06-23 08:30:18 +00:00
parent 931838fb0d
commit 86855b0c40

View File

@@ -250,6 +250,15 @@ in
in "${sway-as-greeter}/bin/sway-as-greeter";
};
systemd.services."sxmo-set-permissions" = {
description = "configure specific /sys and /dev nodes to be writable by sxmo scripts";
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.sxmo-utils}/bin/sxmo_setpermissions.sh";
};
wantedBy = [ "display-manager.service" ];
};
sane.fs."/var/log/sway" = lib.mkIf (cfg.greeter == "sway") {
dir.acl.mode = "0777";
wantedBeforeBy = [ "greetd.service" "display-manager.service" ];