add hyprland modules
This commit is contained in:
parent
b01dce80ef
commit
5288cbae69
4 changed files with 284 additions and 19 deletions
48
modules/hyprland/system.nix
Normal file
48
modules/hyprland/system.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable Hyprland
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
|
||||
# Display manager: greetd + tuigreet
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd Hyprland";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# XDG portals for screen sharing, file picker, etc.
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-hyprland
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
config.common.default = ["*"];
|
||||
};
|
||||
|
||||
# Configure touchpad settings
|
||||
services.libinput = {
|
||||
enable = true;
|
||||
touchpad = {
|
||||
naturalScrolling = true;
|
||||
tapping = false;
|
||||
disableWhileTyping = true;
|
||||
};
|
||||
};
|
||||
|
||||
# System packages for Hyprland
|
||||
environment.systemPackages = with pkgs; [
|
||||
hyprland
|
||||
hypridle
|
||||
hyprlock
|
||||
tuigreet
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue