34 lines
740 B
Nix
34 lines
740 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
cfg = config.services.xserver.windowManager.ragnarwm;
|
||
|
in
|
||
|
{
|
||
|
###### interface
|
||
|
|
||
|
options = {
|
||
|
services.xserver.windowManager.ragnarwm = {
|
||
|
enable = mkEnableOption (lib.mdDoc "ragnarwm");
|
||
|
package = mkOption {
|
||
|
type = types.package;
|
||
|
default = pkgs.ragnarwm;
|
||
|
defaultText = literalExpression "pkgs.ragnarwm";
|
||
|
description = lib.mdDoc ''
|
||
|
The ragnar package to use.
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
###### implementation
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
services.xserver.displayManager.sessionPackages = [ cfg.package ];
|
||
|
environment.systemPackages = [ cfg.package ];
|
||
|
};
|
||
|
|
||
|
meta.maintainers = with lib.maintainers; [ sigmanificient ];
|
||
|
}
|