2023-10-09 19:29:22 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.ragnarwm;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
services.xserver.windowManager.ragnarwm = {
|
|
|
|
enable = mkEnableOption (lib.mdDoc "ragnarwm");
|
2024-01-02 11:29:13 +00:00
|
|
|
package = mkPackageOption pkgs "ragnarwm" { };
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.displayManager.sessionPackages = [ cfg.package ];
|
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta.maintainers = with lib.maintainers; [ sigmanificient ];
|
|
|
|
}
|