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
|
||||
|
||||
# You can also split up your configuration and import pieces of it here:
|
||||
#./swaywm.nix
|
||||
./hyprland.nix
|
||||
./hyprpaper.nix
|
||||
#./swaywm.nix
|
||||
./hypr
|
||||
./shells
|
||||
./variables.nix
|
||||
];
|
||||
|
@ -53,8 +52,9 @@
|
|||
programs.neovim.enable = true;
|
||||
home.packages = with pkgs; [
|
||||
protonvpn-gui
|
||||
devenv
|
||||
devenv
|
||||
];
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
@ -69,25 +69,25 @@
|
|||
profiles = {
|
||||
undocked = {
|
||||
outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
scale = 1.0;
|
||||
status = "enable";
|
||||
}
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
scale = 1.0;
|
||||
status = "enable";
|
||||
}
|
||||
];
|
||||
};
|
||||
docked = {
|
||||
outputs = [
|
||||
{
|
||||
criteria = "HDMI-A-1";
|
||||
position = "0,0";
|
||||
mode = "1920x1080@60Hz";
|
||||
}
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
position = "0,0";
|
||||
status = "enable";
|
||||
}
|
||||
{
|
||||
criteria = "HDMI-A-1";
|
||||
position = "0,0";
|
||||
mode = "1920x1080@60Hz";
|
||||
}
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
position = "0,0";
|
||||
status = "enable";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
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
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
security.pam.services.hyprlock = {};
|
||||
|
||||
boot.loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
grub = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue