some working nvidia, some styling

This commit is contained in:
Remy Moll 2025-03-06 11:37:00 +01:00
parent 41b8850196
commit eb20634def
5 changed files with 110 additions and 158 deletions

@ -79,10 +79,12 @@
input = { input = {
kb_layout = "de"; kb_layout = "de";
kb_options = "caps:escape"; # remap caps lock to ctrl
kb_options = "ctrl:nocaps";
numlock_by_default = true; numlock_by_default = true;
# mouse input should be unchanged # mouse input should be unchanged
natural_scroll = false; natural_scroll = false;
sensitivity = 0.3;
touchpad = { touchpad = {
disable_while_typing = false; disable_while_typing = false;
natural_scroll = true; natural_scroll = true;
@ -119,7 +121,8 @@
}; };
monitor = [ monitor = [
"eDP-1, highres, 0x0, 1.5" # the internal laptop monitor "eDP-1, 3840x2160, 0x0, 1.5" # the internal laptop monitor
"DP-2, 3840x2160, 0x-1440, 1.5"
", preferred, auto, 1" # automatically add any newly detected monitor ", preferred, auto, 1" # automatically add any newly detected monitor
]; ];
}; };
@ -141,6 +144,30 @@
no_fade_in = false; no_fade_in = false;
disable_loading_bar = false; disable_loading_bar = false;
}; };
auth = {
"pam:enabled" = true;
};
background = {
blur_passes = 3;
blur_size = 10;
};
input-field = {
size = "20%, 5%";
outline_thickness = 3;
inner_color = "rgba(0, 0, 0, 0.0)";
outer_color = "rgba(33ccffee) rgba(00ff99ee) 45deg";
check_color = "rgba(00ff99ee) rgba(ff6633ee) 120deg";
fail_color = "rgba(ff6633ee) rgba(ff0066ee) 40deg";
font_color = "rgb(143, 143, 143)";
fade_on_empty = false;
rounding = 15;
position = "0, -20";
halign = "center";
valign = "center";
};
}; };
# Style the lock screen # Style the lock screen
}; };

@ -22,14 +22,22 @@ with lib; let
in { in {
# home.packages = [wallpaperRandomizer]; # home.packages = [wallpaperRandomizer];
services.hyprpaper = { services.hyprpaper = {
enable = true; enable = true;
# settings = { settings = {
# ipc = "on"; ipc = "off";
# splash = false; splash = false;
# splash_offset = 2.0;
# }; preload = [
"${../../../wallpapers/magicpattern-87PP9Zd7MNo-unsplash.jpg}"
];
wallpaper = [
",${../../../wallpapers/magicpattern-87PP9Zd7MNo-unsplash.jpg}"
];
};
}; };
# systemd.user = { # systemd.user = {

@ -24,9 +24,10 @@
margin-bottom = 5; margin-bottom = 5;
margin-left = 5; margin-left = 5;
margin-right = 5; margin-right = 5;
height = 42; # height = 42;
layer = "top"; layer = "top";
position = "top"; position = "top";
spacing = 5;
# height = 30; # height = 30;
# output = [ # output = [
# "eDP-1" # "eDP-1"
@ -42,15 +43,15 @@
"custom/notification" "custom/notification"
]; ];
modules-right = [ modules-right = [
"tray"
# "temperature" # "temperature"
# "group/expand" # "group/expand"
# "bluetooth" # "bluetooth"
"pulseaudio" "wireplumber"
# "network" "network"
# "mpd" # "mpd"
"battery" "battery"
"backlight" "backlight"
"tray"
"idle_inhibitor" "idle_inhibitor"
]; ];
@ -62,6 +63,11 @@
default = ""; default = "";
}; };
}; };
"hyprland/window"= {
"icon" = false;
"separate-outputs" = true;
"format" = "{}";
};
"clock" = { "clock" = {
format = "{:%H:%M}"; format = "{:%H:%M}";
@ -108,17 +114,18 @@
format-icons = [ "󰁻" "󰁼" "󰁾" "󰂀" "󰂂" "󰁹" ]; format-icons = [ "󰁻" "󰁼" "󰁾" "󰂀" "󰂂" "󰁹" ];
}; };
"pulseaudio" = { "wireplumber" = {
format = "{icon} {volume}% {format_source}"; scroll-step = 10;
format-bluetooth = "{volume}% {icon} {format_source}"; format = "{icon} {volume}%";# {format_source}";
format-bluetooth-muted = " {icon} {format_source}"; format-bluetooth = "{volume}% {icon}";# {format_source}";
format-muted = " {format_source}"; format-bluetooth-muted = " {icon}";# {format_source}";
format-source = " {volume}%"; format-muted = "";# {format_source}";
format-source-muted = ""; # format-source = " {volume}%";
# format-source-muted = "";
format-icons = { format-icons = {
headphone = ""; headphone = "";
hands-free = ""; hands-free = "";
headset = ""; headset = "";
phone = ""; phone = "";
portable = ""; portable = "";
default = [ default = [
@ -152,146 +159,56 @@
on-click = "sleep 0.1 && task-waybar"; on-click = "sleep 0.1 && task-waybar";
escape = true; escape = true;
}; };
"network" = {
# interface = "wlp0s20f3";
format = "{ifname}";
format-wifi = " {essid} ({signalStrength}%)";
format-ethernet = "󰊗 {ipaddr}/{cidr}";
format-disconnected = "";
tooltip-format = "󰊗 {ifname} via {gwaddr}";
tooltip-format-wifi = " {essid} ({signalStrength}%)";
tooltip-format-ethernet = "{ifname} ";
tooltip-format-disconnected = "Disconnected";
max-length = 5;
};
}; };
}; };
style = '' style = ''
* { * {
border: none; font-family: "FiraCode Nerd Font";
border-radius: 0; font-weight: bold;
/* `otf-font-awesome` is required to be installed for icons */ font-size: 22px;
font-family: FiraCode Nerd Font;
min-height: 20px;
} }
window#waybar { window#waybar {
background: transparent; background-color: transparent;
} }
window#waybar.hidden {
opacity: 0.2;
}
.module { .module {
color: #ffffff; background: rgba(0, 0, 0, 0.6);
border: none;
}
#workspaces {
margin-right: 8px;
border-radius: 10px;
transition: none;
background: #383c4a;
}
#workspaces button {
transition: none;
color: #7c818c;
background: transparent;
padding: 5px;
font-size: 18px;
}
#workspaces button.persistent {
color: #7c818c;
font-size: 12px;
}
#workspaces button.focused {
color: white; color: white;
border-radius: 5px;
padding: 5px 5px 5px 5px;
margin: 5px 0;
}
box.module button:hover {
box-shadow: inset 0 -3px #ffffff;
} }
#mode { .modules-left {
padding-left: 16px; padding: 3px;
padding-right: 16px;
border-radius: 10px;
transition: none;
color: #ffffff;
background: #383c4a;
} }
#clock { .modules-right {
padding-left: 16px; padding: 3px;
padding-right: 16px;
border-radius: 10px 0px 0px 10px;
transition: none;
color: #ffffff;
background: #383c4a;
} }
#pulseaudio { .modules-center {
margin-right: 8px; padding: 3px;
padding-left: 16px;
padding-right: 16px;
border-radius: 10px;
transition: none;
color: #ffffff;
background: #383c4a;
} }
#pulseaudio.muted {
background-color: #90b1b1;
color: #2a5c45;
}
#backlight {
margin-right: 8px;
padding-left: 16px;
padding-right: 16px;
border-radius: 10px;
transition: none;
color: #ffffff;
background: #383c4a;
}
#battery {
margin-right: 8px;
padding-left: 16px;
padding-right: 16px;
border-radius: 10px;
transition: none;
color: #ffffff;
background: #383c4a;
}
#battery.charging {
color: #ffffff;
background-color: #26A65B;
}
#battery.warning:not(.charging) {
background-color: #ffbe61;
color: black;
}
#battery.critical:not(.charging) {
background-color: #f53c3c;
color: #ffffff;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#tray {
padding-left: 16px;
padding-right: 16px;
border-radius: 10px;
transition: none;
color: #ffffff;
background: #383c4a;
}
@keyframes blink {
to {
background-color: #ffffff;
color: #000000;
}
}
''; '';
}; };
} }

@ -21,4 +21,6 @@
wayland = true; wayland = true;
}; };
security.pam.services.hyprlock = {};
} }

@ -13,10 +13,8 @@
configuration = { configuration = {
system.nixos.tags = [ "nvidia-enabled" ]; system.nixos.tags = [ "nvidia-enabled" ];
# Enable OpenGL # Enable OpenGL
hardware.graphics = { hardware.graphics.enable = lib.mkForce true;
enable = true; hardware.nvidia = lib.mkForce {
};
hardware.nvidia = {
modesetting.enable = true; modesetting.enable = true;
powerManagement.enable = true; powerManagement.enable = true;
powerManagement.finegrained = false; powerManagement.finegrained = false;
@ -32,10 +30,10 @@
package = config.boot.kernelPackages.nvidiaPackages.beta; package = config.boot.kernelPackages.nvidiaPackages.beta;
}; };
# overwrite the blacklists set previously # overwrite the blacklists set previously
boot.extraModprobeConfig = ""; boot.extraModprobeConfig = lib.mkForce "";
boot.blacklistedKernelModules = []; boot.blacklistedKernelModules = lib.mkForce [];
services.udev.extraRules = ""; services.udev.extraRules = lib.mkForce "";
services.xserver.videoDrivers = ["nvidia"]; services.xserver.videoDrivers = lib.mkForce ["nvidia"];
}; };
}; };
}; };