enable lockscreen

This commit is contained in:
2026-02-28 21:22:50 +01:00
parent 7817cb19f2
commit 976d6cf554
6 changed files with 55 additions and 21 deletions

View File

@@ -137,10 +137,19 @@
}; };
# Hyprlock # Hyprlock
security.pam.services.hyprlock = { }; security.pam.services.hyprlock = {
text = ''
auth sufficient pam_fprint.so
auth include login
'';
};
# Fingerprint SDDM
services.fprintd.enable = true;
# Enabling the Keyring. # Enabling the Keyring.
security.pam.services.lightdm.enableGnomeKeyring = true; security.pam.services.login.enableGnomeKeyring = true;
security.pam.services.sddm.enableGnomeKeyring = true;
services = { services = {
gnome.gnome-keyring.enable = true; gnome.gnome-keyring.enable = true;
gnome.gcr-ssh-agent.enable = false; gnome.gcr-ssh-agent.enable = false;

View File

@@ -42,6 +42,7 @@
}; };
}; };
}; };
programs.home-manager.enable = true; programs.home-manager.enable = true;
nixpkgs.config = { nixpkgs.config = {

View File

@@ -58,7 +58,7 @@
:space-evenly false :space-evenly false
(button (button
:class "${idle_inhibitor == 'start' ? 'idleOn' : 'idleOff' }" :class "${idle_inhibitor == 'start' ? 'idleOn' : 'idleOff' }"
:onclick "systemctl --user is-active idle-inhibitor.service && systemctl --user stop idle-inhibitor.service || systemctl --user start idle-inhibitor.service" :onclick "systemctl is-active idle-inhibitor.service && systemctl stop idle-inhibitor.service || systemctl start idle-inhibitor.service"
(label :text "${idle_inhibitor == 'start' ? '󰈈' : '󰛐' }")))) (label :text "${idle_inhibitor == 'start' ? '󰈈' : '󰛐' }"))))
;; /-- Audio --> ;; /-- Audio -->
@@ -196,9 +196,6 @@
:class "text" :class "text"
:text "${date}"))) :text "${date}")))
;; /-- River State --> ;; /-- River State -->
(defvar ws1 "ws-empty") (defvar ws1 "ws-empty")
@@ -253,6 +250,3 @@
(label (label
:class "text separator" :class "text separator"
:text "⦁")) :text "⦁"))

View File

@@ -31,6 +31,17 @@
blur_size = 3; blur_size = 3;
} }
]; ];
auth = {
fingerprint = {
enabled = true;
# Optional: Customize messages
ready_message = "(Scan fingerprint to unlock)";
present_message = "Scanning fingerprint";
retry_delay = 250;
};
};
input-field = [ input-field = [
{ {
size = "200, 50"; size = "200, 50";

View File

@@ -8,14 +8,16 @@
lock_cmd = "/run/current-system/sw/bin/pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock"; lock_cmd = "/run/current-system/sw/bin/pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
before_sleep_cmd = "/run/current-system/sw/bin/loginctl lock-session"; before_sleep_cmd = "/run/current-system/sw/bin/loginctl lock-session";
}; };
listener = [{ listener = [
timeout = 300; {
on-timeout = "${pkgs.hyprlock}/bin/hyprlock"; timeout = 300;
}{ on-timeout = "${pkgs.hyprlock}/bin/hyprlock";
timeout = 600; }
on-timeout = "${pkgs.systemd}/bin/systemctl suspend"; {
}]; timeout = 600;
on-timeout = "${pkgs.systemd}/bin/systemctl suspend";
}
];
}; };
}; };
} }

View File

@@ -1,13 +1,30 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ ./hardware-configuration-laptop.nix ./../configuration.nix ]; imports = [
./hardware-configuration-laptop.nix
./../configuration.nix
];
networking.hostName = "eliasLaptop"; networking.hostName = "eliasLaptop";
services.blueman.enable = true;
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
# ── Fingerprint ───────────────────────────────────────────────────────
services.fprintd = {
enable = true;
tod = {
enable = true;
driver = pkgs.libfprint-2-tod1-goodix;
};
};
# ── Bluetooth ─────────────────────────────────────────────────────────
services.blueman.enable = true;
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
# ── Network ───────────────────────────────────────────────────────────
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
networkmanager-vpnc networkmanager-vpnc
networkmanagerapplet networkmanagerapplet