26 lines
491 B
Nix
26 lines
491 B
Nix
{ pkgs, lib, config, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.services.window-manager;
|
|
in
|
|
{
|
|
imports = [];
|
|
|
|
options.services.window-manager = {
|
|
enable = mkEnableOption "enable window-manager";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.hyprland.enable = true;
|
|
programs.hyprlock.enable = true;
|
|
security.pam.services.hyprlock = {};
|
|
environment.systemPackages = with pkgs; [
|
|
wofi
|
|
dolphin
|
|
waybar
|
|
pavucontrol
|
|
swaynotificationcenter
|
|
];
|
|
};
|
|
}
|