0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 05:38:57 +03:00

Merge pull request #196862 from atorres1985-contrib/hypr

hypr: init at unstable-2022-05-25
This commit is contained in:
Anderson Torres 2022-10-21 08:00:20 -03:00 committed by GitHub
commit 77b67a2524
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 123 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 ];
};
}