Skip to content
This repository was archived by the owner on Aug 27, 2018. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/services/x11/window-managers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ in
./xmonad.nix
./i3.nix
./xbmc.nix
./fvwm.nix
];

options = {
Expand Down
42 changes: 42 additions & 0 deletions modules/services/x11/window-managers/fvwm.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{ config, pkgs, ... }:

with pkgs.lib;

let

cfg = config.services.xserver.windowManager.fvwm;

in

{

###### interface

options = {

services.xserver.windowManager.fvwm.enable = mkOption {
default = false;
description = "Enable the FVWM window manager.";
};

};


###### implementation

config = mkIf cfg.enable {

services.xserver.windowManager.session = singleton
{ name = "fvwm";
start =
''
${pkgs.fvwm}/bin/fvwm &
waitPID=$!
'';
};

environment.x11Packages = [ pkgs.fvwm ];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

x11Packages is obsolete. use systemPackages instead.


};

}