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 = {
|
2024-04-21 15:54:59 +00:00
|
|
|
enable = mkEnableOption "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 {
|
2024-04-21 15:54:59 +00:00
|
|
|
services.displayManager.sessionPackages = [ cfg.package ];
|
2023-10-09 19:29:22 +00:00
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta.maintainers = with lib.maintainers; [ sigmanificient ];
|
|
|
|
}
|