20 lines
427 B
Nix
20 lines
427 B
Nix
{ pkgs, lib, config, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.modules.desktop.sway;
|
|
in
|
|
{
|
|
options.modules.desktop.sway = {
|
|
enable = mkEnableOption "Enable Steam Platform";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
security.pam.services.swaylock = {};
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
};
|
|
};
|
|
}
|