feat: created integration of all hypr ecosystem components

This commit is contained in:
Zhongheng Liu 2024-08-09 17:06:39 +08:00
commit 7af26d3e3f
7 changed files with 92 additions and 19 deletions

View file

@ -15,8 +15,7 @@
# You can also split up your configuration and import pieces of it here: # You can also split up your configuration and import pieces of it here:
#./swaywm.nix #./swaywm.nix
./hyprland.nix ./hypr
./hyprpaper.nix
./shells ./shells
./variables.nix ./variables.nix
]; ];
@ -55,6 +54,7 @@
protonvpn-gui protonvpn-gui
devenv devenv
]; ];
programs.home-manager.enable = true; programs.home-manager.enable = true;
programs.git = { programs.git = {
enable = true; enable = true;

View file

@ -0,0 +1,9 @@
{pkgs, config, lib, ...}:
{
imports = [
./hyprland.nix
./hyprpaper.nix
./hypridle.nix
./hyprlock.nix
];
}

View file

@ -0,0 +1,22 @@
{pkgs, ...}:
let
timeoutSeconds = 60;
in
{
services.hypridle = {
enable = true;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock";
};
listener = [
{
timeout = timeoutSeconds;
on-timeout = "hyprlock";
}
];
};
};
}

View file

@ -0,0 +1,39 @@
{pkgs, config, lib, ...}:
{
programs.hyprlock = {
enable = true;
settings = {
general = {
disable_loading_bar = true;
grace = 10;
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 = '\'<span foreground="##cad3f5">Password...</span>'\';
shadow_passes = 2;
}
];
};
};
}

View file

@ -16,6 +16,9 @@
./services/laptop.preset.nix ./services/laptop.preset.nix
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
security.pam.services.hyprlock = {};
boot.loader = { boot.loader = {
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
grub = { grub = {