nixos/hypr: add module

This commit is contained in:
AndersonTorres 2022-10-20 00:17:05 -03:00
parent 49b55099ea
commit af3779f819
2 changed files with 26 additions and 0 deletions

View file

@ -23,6 +23,7 @@ in
./fvwm3.nix
./hackedbox.nix
./herbstluftwm.nix
./hypr.nix
./i3.nix
./jwm.nix
./leftwm.nix

View file

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.xserver.windowManager.hypr;
in
{
###### interface
options = {
services.xserver.windowManager.hypr.enable = mkEnableOption (lib.mdDoc "hypr");
};
###### implementation
config = mkIf cfg.enable {
services.xserver.windowManager.session = singleton {
name = "hypr";
start = ''
${pkgs.hypr}/bin/Hypr &
waitPID=$!
'';
};
environment.systemPackages = [ pkgs.hypr ];
};
}