nixos/hypr: add module
This commit is contained in:
parent
49b55099ea
commit
af3779f819
2 changed files with 26 additions and 0 deletions
|
@ -23,6 +23,7 @@ in
|
|||
./fvwm3.nix
|
||||
./hackedbox.nix
|
||||
./herbstluftwm.nix
|
||||
./hypr.nix
|
||||
./i3.nix
|
||||
./jwm.nix
|
||||
./leftwm.nix
|
||||
|
|
25
nixos/modules/services/x11/window-managers/hypr.nix
Normal file
25
nixos/modules/services/x11/window-managers/hypr.nix
Normal 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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue