feat: created integration of all hypr ecosystem components
This commit is contained in:
parent
a3dc31db18
commit
7af26d3e3f
7 changed files with 92 additions and 19 deletions
|
@ -14,9 +14,8 @@
|
||||||
# inputs.nix-colors.homeManagerModule
|
# inputs.nix-colors.homeManagerModule
|
||||||
|
|
||||||
# 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;
|
||||||
|
|
9
home-manager/stvnliu/hypr/default.nix
Normal file
9
home-manager/stvnliu/hypr/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{pkgs, config, lib, ...}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./hyprland.nix
|
||||||
|
./hyprpaper.nix
|
||||||
|
./hypridle.nix
|
||||||
|
./hyprlock.nix
|
||||||
|
];
|
||||||
|
}
|
22
home-manager/stvnliu/hypr/hypridle.nix
Normal file
22
home-manager/stvnliu/hypr/hypridle.nix
Normal 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";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
39
home-manager/stvnliu/hypr/hyprlock.nix
Normal file
39
home-manager/stvnliu/hypr/hyprlock.nix
Normal 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;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -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 = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue