2955b2fcf4
Now the default way to define NixOS window manager modules is to use mkEnableOption to describe the module itself. In this commit, all files on nixos/modules/services/x11/window-managers are changed.
23 lines
480 B
Nix
23 lines
480 B
Nix
{lib, pkgs, config, ...}:
|
|
|
|
let
|
|
inherit (lib) mkOption mkIf;
|
|
cfg = config.services.xserver.windowManager.openbox;
|
|
in
|
|
|
|
{
|
|
options = {
|
|
services.xserver.windowManager.openbox.enable = mkEnableOption "oroborus";
|
|
|
|
config = mkIf cfg.enable {
|
|
services.xserver.windowManager = {
|
|
session = [{
|
|
name = "openbox";
|
|
start = "
|
|
${pkgs.openbox}/bin/openbox-session
|
|
";
|
|
}];
|
|
};
|
|
environment.systemPackages = [ pkgs.openbox ];
|
|
};
|
|
}
|