mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
Fluxbox: adding system support (as a module)
This commit is contained in:
parent
fe270c011c
commit
49fcac0d6b
@ -293,6 +293,7 @@
|
||||
./services/x11/window-managers/awesome.nix
|
||||
#./services/x11/window-managers/compiz.nix
|
||||
./services/x11/window-managers/default.nix
|
||||
./services/x11/window-managers/fluxbox.nix
|
||||
./services/x11/window-managers/icewm.nix
|
||||
./services/x11/window-managers/bspwm.nix
|
||||
./services/x11/window-managers/metacity.nix
|
||||
|
28
nixos/modules/services/x11/window-managers/fluxbox.nix
Normal file
28
nixos/modules/services/x11/window-managers/fluxbox.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.services.xserver.windowManager.fluxbox;
|
||||
in
|
||||
{
|
||||
###### interface
|
||||
options = {
|
||||
services.xserver.windowManager.fluxbox.enable = mkOption {
|
||||
default = false;
|
||||
description = "Enable the Fluxbox window manager.";
|
||||
};
|
||||
};
|
||||
|
||||
###### implementation
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver.windowManager.session = singleton {
|
||||
name = "fluxbox";
|
||||
start = ''
|
||||
${pkgs.fluxbox}/bin/startfluxbox &
|
||||
waitPID=$!
|
||||
'';
|
||||
};
|
||||
environment.systemPackages = [ pkgs.fluxbox ];
|
||||
};
|
||||
}
|
@ -10,13 +10,7 @@ stdenv.mkDerivation rec {
|
||||
name = "fluxbox-${version}";
|
||||
version = "1.3.5";
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig
|
||||
freetype fribidi
|
||||
libXext libXft libXpm libXrandr libXrender xextproto
|
||||
libXinerama
|
||||
imlib2
|
||||
];
|
||||
buildInputs = [ pkgconfig freetype fribidi libXext libXft libXpm libXrandr libXrender xextproto libXinerama imlib2 ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/fluxbox/${name}.tar.bz2";
|
||||
@ -24,7 +18,7 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Full-featured, light-resource X window manager.";
|
||||
description = "Full-featured, light-resource X window manager";
|
||||
longDescription = ''
|
||||
Fluxbox is a X window manager based on Blackbox 0.61.1 window manager sources.
|
||||
It is very light on resources and easy to handle but yet full of features to make an easy,
|
||||
|
Loading…
Reference in New Issue
Block a user