summary refs log blame commit diff
path: root/nixos/modules/services/x11/window-managers/spectrwm.nix
blob: c464803a0b6a9ee0594a55b410e0e6f46baf7a6d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                       
                                                                                           














                                                   
{ config, lib, pkgs, ... }:

with lib;

let
  cfg = config.services.xserver.windowManager.spectrwm;
in

{
  options = {
    services.xserver.windowManager.spectrwm.enable = mkEnableOption (lib.mdDoc "spectrwm");
  };

  config = mkIf cfg.enable {
    services.xserver.windowManager = {
      session = [{
        name = "spectrwm";
        start = ''
          ${pkgs.spectrwm}/bin/spectrwm &
          waitPID=$!
        '';
      }];
    };
    environment.systemPackages = [ pkgs.spectrwm ];
  };
}