use hyprlock, because it looks okay at least

This commit is contained in:
Noa Aarts 2025-11-24 14:28:16 +01:00
parent e0c6a80533
commit 1c7f744aaf
Signed by: noa
GPG key ID: 1850932741EFF672
9 changed files with 17 additions and 10 deletions

8
common/graphix.nix Normal file
View file

@ -0,0 +1,8 @@
{
config,
pkgs,
...
}:
{
security.pam.services.hyprlock = { };
}

View file

@ -458,6 +458,9 @@ in
};
# Let Home Manager install and manage itself.
home-manager.enable = true;
hyprlock = {
enable = enableGraphical;
};
# add `play funny video` as alias because why not
zsh.shellAliases.bzzt = lib.mkIf enableGraphical ''nix-shell -p mpv --command "mpv ~/Videos/BZZZM.mp4"'';
# lsd makes files look better
@ -504,10 +507,6 @@ in
};
};
};
zoxide = {
enable = true;
enableZshIntegration = true;
};
};
services = {
@ -561,7 +560,6 @@ in
targets = {
neovim.enable = false;
waybar.enable = false;
swaylock.enable = true;
fuzzel.enable = false;
firefox.profileNames = [ "profile_0" ];
qt = {

View file

@ -126,7 +126,6 @@
targets = {
neovim.enable = false;
waybar.enable = false;
swaylock.enable = true;
firefox.profileNames = [ "profile_0" ];
qt = {
enable = true;

View file

@ -12,6 +12,8 @@
# Include the results of the hardware scan.
./hardware-configuration.nix
../../common/graphix.nix
../../common
../../common/configuration.nix

View file

@ -126,7 +126,6 @@
targets = {
neovim.enable = false;
waybar.enable = false;
swaylock.enable = true;
firefox.profileNames = [ "profile_0" ];
qt = {
enable = true;

View file

@ -24,6 +24,7 @@ in
isDefault = true;
search = {
default = "ddg";
force = true;
order = [
"ddg"
"google"

View file

@ -20,7 +20,7 @@ in
settings.mainBar."${name}" = {
format = "";
on-click = "${inputs.self.packages.${pkgs.system}.fuzzel-power}/bin/fuzzel-power";
on-click-right = "${pkgs.swaylock}/bin/swaylock"; # TODO: change to whatever lock screen i want
on-click-right = "${pkgs.hyprlock}/bin/hyprlock";
};
style = ''
#custom-poweroff {

View file

@ -10,7 +10,7 @@ pkgs.writeShellScriptBin "fuzzel-power" ''
if [ "$selected_option" == "$lock" ]
then
echo "lock"
${pkgs.swaylock}/bin/swaylock
${pkgs.hyprlock}/bin/hyprlock
elif [ "$selected_option" == "$poweroff" ]
then
echo "poweroff"

View file

@ -8,7 +8,7 @@ let
terminal = "${pkgs.kitty}/bin/kitty";
launcher = "${self-pkgs.fuzzel-launch}/bin/fuzzel-launch";
power-menu = "${self-pkgs.fuzzel-power}/bin/fuzzel-power";
lockscreen = "${pkgs.swaylock}/bin/swaylock";
lockscreen = "${pkgs.hyprlock}/bin/hyprlock";
autostart-string =
"spawn-at-startup \""
+ pkgs.lib.strings.concatStringsSep "\nspawn-at-startup \"" [