feat: better modules aragement.
This commit is contained in:
parent
de11ee0676
commit
6e967a751f
49 changed files with 27 additions and 19 deletions
30
modules/linux/nixos/hyprland.nix
Normal file
30
modules/linux/nixos/hyprland.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.hyprland-nixos.enable = lib.mkEnableOption "Enable hyprland globally";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.hyprland-nixos.enable {
|
||||
programs.uwsm = {
|
||||
enable = true;
|
||||
|
||||
waylandCompositors = {
|
||||
hyprland = {
|
||||
prettyName = "Hyprland";
|
||||
comment = "Hyprland compositor managed by UWSM";
|
||||
binPath = "/run/current-system/sw/bin/Hyprland";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
withUWSM = true;
|
||||
};
|
||||
|
||||
security.pam.services.hyprlock = {};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue