mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
nixos/hypr: add module
This commit is contained in:
parent
49b55099ea
commit
af3779f819
@ -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 New Issue
Block a user