This commit is contained in:
Lilith 2025-03-18 02:09:35 +01:00
parent 1eb67ac0de
commit 0ab5043bf0
Signed by: lilith
GPG key ID: 8712A0F317C37175
5 changed files with 49 additions and 5 deletions

View file

@ -1,6 +1,7 @@
{ lib, ... }:
{ hyprland, ... }:
{
imports = [
hyprland.homeManagerModules.default
./hyprpaper.nix
./hyprlock.nix
./hyprgrass.nix
@ -9,6 +10,7 @@
wayland.windowManager.hyprland = {
enable = true;
# package = hyprland.packages.${pkgs.system}.hyprland;
xwayland.enable = true;

View file

@ -1,4 +1,23 @@
{ pkgs, hyprgrass, ... }:
{
wayland.windowManager.hyprland.plugins = [ hyprgrass.packages.${pkgs.system}.default ];
config,
lib,
pkgs,
hyprgrass,
...
}:
{
options.desktop.touchSupport = lib.mkEnableOption "Enables touch-related features";
config.wayland.windowManager.hyprland = lib.mkIf config.desktop.touchSupport {
plugins = [ hyprgrass.packages.${pkgs.system}.default ];
settings.plugin.touch_gestures = {
sensitivity = 2.0;
workspace_swipe_fingers = 3;
workspace_swipe_edge = "d";
long_press_delay = 500;
resize_on_border_long_press = true;
edge_margin = 20;
};
};
}

View file

@ -1,4 +1,5 @@
{ config, lib, ...}:{
{ lib, ... }:
{
programs.hyprlock = {
enable = true;
@ -26,7 +27,7 @@
input-field = [
{
size = "800, 80";
size = "30%, 5%";
position = "0, 0";
monitor = "";
dots_center = true;
@ -39,6 +40,25 @@
shadow_passes = 2;
}
];
label = [
{
text = "Welcome!";
position = "0, 20%";
font_size = 40;
font_family = "JetBrains Mono";
halign = "center";
valign = "center";
}
{
text = "$TIME";
position = "0, 15%";
font_size = 25;
font_family = "JetBrains Mono";
halign = "center";
valign = "center";
}
];
};
};
}

View file

@ -6,6 +6,8 @@ in
system.stateVersion = "24.11";
desktop.enable = true;
home-manager.users."lilith".desktop.touchSupport = true;
gaming.enable = false;
nfs.client.enable = true;
auto_styling.enable = true;

View file

@ -26,6 +26,7 @@
{
hostName = "lilith-server-builder";
system = "x86_64-linux";
protocol = "ssh-ng";
}
];
};