Compare commits

...

5 Commits

Author SHA1 Message Date
d1b805789b
hyprland: add recommended env vars
All checks were successful
Check flake / build-amd64-linux (push) Successful in 3m13s
2025-03-16 22:38:59 +00:00
1001119829
hyprland: extract hypridle 2025-03-16 22:07:13 +00:00
aaa944fd33
hyprland: extract hyprpaper 2025-03-16 22:05:15 +00:00
ad6d6d4f15
hyprland: extract hyprlock 2025-03-16 22:03:35 +00:00
cd4b58ae90
hyprland: preload wallpaper 2025-03-16 21:58:54 +00:00
5 changed files with 121 additions and 72 deletions

View File

@ -15,7 +15,7 @@
./gnome.nix
]
++ lib.optionals osConfig.modules.system.desktop.hyprland.enable [
./hyprland.nix
./hyprland
];
home.packages = with pkgs; [

View File

@ -1,12 +1,41 @@
{
lib,
pkgs,
osConfig,
...
}:
let
inherit (lib)
elem
optionals
;
in
{
imports = [
./hypridle.nix
./hyprlock.nix
./hyprpaper.nix
];
wayland.windowManager.hyprland = {
enable = true;
settings = {
env =
optionals (elem "nvidia" osConfig.services.xserver.videoDrivers) [
"GBM_BACKEND,nvidia-drm"
"LIBVA_DRIVER_NAME,nvidia"
]
++ [
"_JAVA_AWT_WM_NONREPARENTING,1"
"GDK_BACKEND,wayland"
"MOZ_ENABLE_WAYLAND,1"
"NIXOS_OZONE_WL,1"
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
"QT_QPA_PLATFORM,wayland"
"SDL_VIDEODRIVER,wayland"
"XDG_SESSION_TYPE,wayland"
];
general = {
gaps_in = 5;
gaps_out = 20;
@ -167,76 +196,6 @@
};
};
services.hypridle = {
enable = false;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock";
};
listener = [
{
timeout = 900;
on-timeout = "hyprlock";
}
{
timeout = 1200;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};
programs.hyprlock = {
enable = false;
settings = {
general = {
disable_loading_bar = false;
grace = 300;
hide_cursor = true;
no_fade_in = false;
};
background = [
{
path = "screenshot";
blur_passes = 3;
blur_size = 8;
}
];
input-field = [
{
size = "200, 50";
position = "0, -80";
monitor = "";
dots_center = true;
fade_on_empty = false;
font_color = "rgb(202, 211, 245)";
inner_color = "rgb(91, 96, 120)";
outer_color = "rgb(24, 25, 38)";
outline_thickness = 5;
placeholder_text = "Password...";
shadow_passes = 2;
}
];
};
};
services.hyprpaper = {
enable = true;
settings = {
ipc = "on";
splash = false;
wallpaper = [
",/home/jordan/Pictures/Aurora.png"
];
};
};
home.packages = with pkgs.unstable; [
adw-gtk3
anyrun

View File

@ -0,0 +1,28 @@
{
...
}:
{
services.hypridle = {
enable = false;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock";
};
listener = [
{
timeout = 900;
on-timeout = "hyprlock";
}
{
timeout = 1200;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};
}

View File

@ -0,0 +1,41 @@
{
...
}:
{
programs.hyprlock = {
enable = false;
settings = {
general = {
disable_loading_bar = false;
grace = 300;
hide_cursor = true;
no_fade_in = false;
};
background = [
{
path = "screenshot";
blur_passes = 3;
blur_size = 8;
}
];
input-field = [
{
size = "200, 50";
position = "0, -80";
monitor = "";
dots_center = true;
fade_on_empty = false;
font_color = "rgb(202, 211, 245)";
inner_color = "rgb(91, 96, 120)";
outer_color = "rgb(24, 25, 38)";
outline_thickness = 5;
placeholder_text = "Password...";
shadow_passes = 2;
}
];
};
};
}

View File

@ -0,0 +1,21 @@
{
...
}:
{
services.hyprpaper = {
enable = true;
settings = {
ipc = "on";
splash = false;
preload = [
"/home/jordan/Pictures/Aurora.png"
];
wallpaper = [
",/home/jordan/Pictures/Aurora.png"
];
};
};
}