[Nix-dev] nixos: fluxbox integration
Anonymous Remailer (austria)
mixmaster at remailer.privacy.at
Mon Aug 18 15:54:57 CEST 2014
nixos: fluxbox integration
---
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix
index 4538991..5b1b008 100644
--- a/nixos/modules/module-list.nix
+++ b/nixos/modules/module-list.nix
@@ -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
diff --git a/nixos/modules/services/x11/window-managers/fluxbox.nix b/nixos/modules/services/x11/window-managers/fluxbox.nix
new file mode 100644
index 0000000..dd797e0
--- /dev/null
+++ b/nixos/modules/services/x11/window-managers/fluxbox.nix
@@ -0,0 +1,42 @@
+{ 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 ];
+
+ };
+
+}
More information about the nix-dev
mailing list