d004ac6857
Oroborus (named after the self-eating snake) is a minimalistic window manager.
25 lines
511 B
Nix
25 lines
511 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.services.xserver.windowManager.oroborus;
|
|
in
|
|
{
|
|
###### interface
|
|
options = {
|
|
services.xserver.windowManager.oroborus.enable = mkEnableOption "oroborus";
|
|
};
|
|
|
|
###### implementation
|
|
config = mkIf cfg.enable {
|
|
services.xserver.windowManager.session = singleton {
|
|
name = "oroborus";
|
|
start = ''
|
|
${pkgs.oroborus}/bin/oroborus &
|
|
waitPID=$!
|
|
'';
|
|
};
|
|
environment.systemPackages = [ pkgs.oroborus ];
|
|
};
|
|
}
|