More nvidia fixes

This commit is contained in:
Javier Feliz 2025-08-21 23:07:23 -04:00
parent fd3e5f781f
commit 33f45c4cad
7 changed files with 101 additions and 0 deletions

BIN
assets/lockscreen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 MiB

View File

@ -50,6 +50,7 @@
claude-code claude-code
xsel xsel
nss.tools nss.tools
ansible
# System tools # System tools
btop btop

View File

@ -61,6 +61,7 @@
"$mod SHIFT, c, togglespecialworkspace, comms" "$mod SHIFT, c, togglespecialworkspace, comms"
"$mod SHIFT, a, togglespecialworkspace, research" "$mod SHIFT, a, togglespecialworkspace, research"
"$mod SHIFT ALT, x, exec, hyprctl dispatch exit" "$mod SHIFT ALT, x, exec, hyprctl dispatch exit"
"$mod SHIFT ALT, l, exec, hyprlock"
# "SHIFT, Print, exec, grimblast copy area" # "SHIFT, Print, exec, grimblast copy area"
# "CTRL, Print, exec, grimblast copy active" # "CTRL, Print, exec, grimblast copy active"
] ]

View File

@ -10,6 +10,7 @@
./binds.nix ./binds.nix
./hyprpaper.nix ./hyprpaper.nix
./hyprpanel.nix ./hyprpanel.nix
./hyprlock.nix
./wofi.nix ./wofi.nix
./desktop-env.nix ./desktop-env.nix
./screenshots.nix ./screenshots.nix
@ -25,6 +26,7 @@
libnotify libnotify
# Desktop env # Desktop env
hyprpanel hyprpanel
hyprpolkitagent
# Utility # Utility
wl-clipboard wl-clipboard
]; ];
@ -97,6 +99,8 @@
exec-once = [ exec-once = [
# "quickshell -c hyprshell" # "quickshell -c hyprshell"
"hyprpanel" "hyprpanel"
"hypridle"
"systemctl --user start hyprpolkitagent"
]; ];
}; };

View File

@ -0,0 +1,87 @@
{
inputs,
assets,
lib,
...
}:
{
programs.hyprlock = {
enable = true;
settings = {
# Variables
"$font" = "Monospace";
general = {
hide_cursor = false;
};
animations = {
enabled = true;
bezier = "linear, 1, 1, 0, 0";
animation = [
"fadeIn, 1, 5, linear"
"fadeOut, 1, 5, linear"
"inputFieldDots, 1, 2, linear"
];
};
background = lib.mkForce [
{
monitor = "";
path = "/etc/lockscreen.png";
blur_passes = 1;
}
];
# input-field = [
# {
# monitor = "";
# size = "20%, 5%";
# fade_on_empty = false;
# rounding = 15;
# font_family = "$font";
# placeholder_text = "Input password...";
# fail_text = "$PAMFAIL";
# # Uncomment to use a letter instead of a dot to indicate the typed password
# # dots_text_format = "*";
# # dots_size = 0.4;
# dots_spacing = 0.3;
# # Uncomment to use an input indicator that does not show the password length
# # hide_input = true;
# position = "0, -20";
# halign = "center";
# valign = "center";
# }
# ];
# Labels are defined as a list since there are multiple
label = [
# TIME
{
monitor = "";
text = "$TIME"; # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#variable-substitution
font_size = 90;
font_family = "$font";
position = "-30, 0";
halign = "right";
valign = "top";
}
# DATE
{
monitor = "";
text = ''cmd[update:60000] date +"%A, %d %B %Y"''; # update every 60 seconds
font_size = 25;
font_family = "$font";
position = "-30, -150";
halign = "right";
valign = "top";
}
];
};
};
stylix.targets.hyprlock = {
useWallpaper = true;
};
}

View File

@ -13,6 +13,7 @@ in
environment = { environment = {
etc = { etc = {
"sddm-wallpaper.png".source = "${assets}/sddm-background.png"; "sddm-wallpaper.png".source = "${assets}/sddm-background.png";
"lockscreen.png".source = "${assets}/lockscreen.png";
"gtk-3.0/settings.ini".text = '' "gtk-3.0/settings.ini".text = ''
[Settings] [Settings]
gtk-icon-theme-name=Papirus gtk-icon-theme-name=Papirus

View File

@ -12,4 +12,11 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
gamemode gamemode
]; ];
# In your configuration.nix
hardware.opengl = {
enable = true;
};
services.xserver.videoDrivers = [ "nvidia" ];
} }