seatd: split out of sway conf

This commit is contained in:
2024-05-29 16:22:52 +00:00
parent c40ec1990a
commit 2789868703
3 changed files with 14 additions and 5 deletions

View File

@@ -111,6 +111,7 @@
./sane-theme.nix ./sane-theme.nix
./sanebox.nix ./sanebox.nix
./schlock.nix ./schlock.nix
./seatd.nix
./sfeed.nix ./sfeed.nix
./shadow.nix ./shadow.nix
./signal-desktop.nix ./signal-desktop.nix

View File

@@ -0,0 +1,12 @@
{ ... }:
let
cfg = config.sane.programs.seatd;
in
{
sane.programs.seatd = {};
# TODO: sandbox seatd
# also consider any alternatives (ConsoleKit?).
# /run/seatd.sock location can be configured, but only via compile-time flag
services.seatd.enable = lib.mkIf cfg.enabled true;
}

View File

@@ -136,6 +136,7 @@ in
"sane-screenshot" "sane-screenshot"
"sane-open" "sane-open"
"sane-theme" "sane-theme"
"seatd"
# "splatmoji" # used by sway config # "splatmoji" # used by sway config
"sway-contrib.grimshot" # used by sway config "sway-contrib.grimshot" # used by sway config
"swayidle" # enable if you need it "swayidle" # enable if you need it
@@ -239,11 +240,6 @@ in
services.graphical-session.partOf = [ "default" ]; services.graphical-session.partOf = [ "default" ];
}; };
# TODO: sandbox seatd
# also consider any alternatives (ConsoleKit?).
# /run/seatd.sock location can be configured, but only via compile-time flag
services.seatd.enable = lib.mkIf cfg.enabled true;
# TODO: this can go elsewhere # TODO: this can go elsewhere
hardware.bluetooth.enable = lib.mkIf cfg.enabled true; hardware.bluetooth.enable = lib.mkIf cfg.enabled true;
services.blueman.enable = lib.mkIf cfg.enabled true; services.blueman.enable = lib.mkIf cfg.enabled true;