add hyprlock

This commit is contained in:
Anthony Rodriguez 2024-09-06 04:32:07 +02:00
parent 48810564b1
commit 7ca7592c97
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
4 changed files with 50 additions and 2 deletions

View file

@ -25,6 +25,10 @@
}; };
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
hyprpaper.url = "github:hyprwm/hyprpaper"; hyprpaper.url = "github:hyprwm/hyprpaper";
hyprlock = {
url = "github:hyprwm/hyprlock";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland-contrib = { hyprland-contrib = {
url = "github:hyprwm/contrib"; url = "github:hyprwm/contrib";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";

View file

@ -1,12 +1,12 @@
{ inputs, pkgs, ... }: { inputs, pkgs, ... }:
{ {
imports = [./hyprlock.nix];
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland; package = inputs.hyprland.packages.${pkgs.system}.hyprland;
settings = { settings = {
"$mod" = "SUPER"; "$mod" = "SUPER";
"$terminal" = "kitty"; "$terminal" = "kitty"; "$menu" = "fuzzel";
"$menu" = "fuzzel";
"monitor" = "eDP-1, 2256x1504@60, 0x0, 1.6"; "monitor" = "eDP-1, 2256x1504@60, 0x0, 1.6";
input.touchpad.natural_scroll = true; input.touchpad.natural_scroll = true;
gestures.workspace_swipe = true; gestures.workspace_swipe = true;
@ -50,6 +50,7 @@
}; };
programs.fuzzel.enable = true; programs.fuzzel.enable = true;
home.packages = with inputs.hyprland-contrib.packages.${pkgs.system}; [ home.packages = with inputs.hyprland-contrib.packages.${pkgs.system}; [
grimblast grimblast
]; ];

View file

@ -0,0 +1,42 @@
{ inputs, pkgs, ... }:
{
programs.hyprlock = {
enable = true;
package = inputs.hyprlock.packages.${pkgs.system}.default;
settings =
{
general = {
disable_loading_bar = true;
grace = 3;
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

@ -39,5 +39,6 @@ in
default_session = initial_session; default_session = initial_session;
}; };
}; };
security.pam.services.hyprlock = {};
}; };
} }