Added: Changed Hyprlock

This commit is contained in:
DerGrumpf 2025-04-09 00:02:08 +02:00
parent 7115f3c1dc
commit 21787c4516
2 changed files with 92 additions and 8 deletions

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, catppuccin, ... }:
{
# Hyprland and related packages
@ -6,7 +6,91 @@
hyprlock
];
catppuccin.hyprlock.enable = false;
# Hyprlock configuration
programs.hyprlock.enable = true;
programs.hyprlock = {
enable = true;
settings = {
source = "$HOME/.config/hypr/mocha.conf";
"$accent" = "$mauve";
"$accentAlpha" = "$mauveAlpha";
"$font" = "JetBrainsMono Nerd Font";
general = {
disable_loading_bar = true;
hide_cursor = true;
};
background = [
{
path="~/Pictures/Wallpapers/lucy_with_cat.png";
blur_passes = 0;
blur_size = 0;
}
];
label = [
# TIME
{
monitor = "";
text = "$TIME";
color = "$text";
font_size = 90;
font_family = "$font";
position = "-30, 0";
halign = "right";
valign = "top";
}
# DATE
{
monitor = "";
text = ''cmd[update:43200000] date +"%A, %d %B %Y"'';
color = "$text";
font_size = 25;
font_family = "$font";
position = "-30, -150";
halign = "right";
valign = "top";
}
];
# INPUT FIELD
input-field = {
monitor = "";
size = "300, 60";
outline_thickness = 4;
dots_size = 0.2;
dots_spacing = 0.2;
dots_center = "true";
outer_color = "$red";
inner_color = "$surface0";
font_color = "$text";
fade_on_empty = false;
placeholder_text = ''<span foreground="##$textAlpha"><i>󰌾 Logged in as </i><span foreground="##$accentAlpha">$USER</span></span>'';
hide_input = false;
check_color = "$accent";
fail_color = "$red";
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
capslock_color = "$yellow";
position = "0, -150";
halign = "center";
valign = "center";
};
image = {
monitor = "";
path = "~/.config/hypr/avatar.png";
size = 300;
border_color = "$teal";
position = "0, 75";
halign = "center";
valign = "center";
};
};
};
}

View File

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
{
imports =
@ -37,16 +37,16 @@
networking = {
hostName = "nix-desktop";
networkmanager.enable = true;
#useDHCP = true;
#useDHCP = lib.mkForce true;
#dhcpcd.enable = true;
/*interfaces = {
interfaces = {
eno1.ipv4.addresses = [{
address = "192.168.2.40";
prefixLength = 24;
}];
};*/
};
/*defaultGateway = {
defaultGateway = {
address = "192.168.2.1";
interface = "eno1";
};
@ -55,7 +55,7 @@
"192.168.2.50"
"1.1.1.1"
"8.8.8.8"
];*/
];
};
hardware.graphics.enable = true;