mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
commit
dd02d2bfbe
@ -8,6 +8,7 @@ in
|
||||
{
|
||||
imports = [
|
||||
./compiz.nix
|
||||
./openbox.nix
|
||||
./kwm.nix
|
||||
./metacity.nix
|
||||
./none.nix
|
||||
|
30
modules/services/x11/window-managers/openbox.nix
Normal file
30
modules/services/x11/window-managers/openbox.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{pkgs, config, ...}:
|
||||
|
||||
let
|
||||
inherit (pkgs.lib) mkOption mkIf;
|
||||
cfg = config.services.xserver.windowManager.openbox;
|
||||
in
|
||||
|
||||
{
|
||||
options = {
|
||||
services.xserver.windowManager.openbox = {
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Enable the Openbox window manager.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver.windowManager = {
|
||||
session = [{
|
||||
name = "openbox";
|
||||
start = "
|
||||
${pkgs.openbox}/bin/openbox-session
|
||||
";
|
||||
}];
|
||||
};
|
||||
environment.x11Packages = [ pkgs.openbox ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user