add gtk, niri, noctalia, ssh, swaylock

This commit is contained in:
2026-07-27 15:10:46 +09:00
parent 5c2ff3cbcf
commit 79cc69045f
13 changed files with 644 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
{ lib, pkgs, ... }:
{
home.packages = [ pkgs.swaylock ];
systemd.user.services.swaylock = {
Unit = {
Description = "Screen locker for Wayland";
Documentation = [ "man:swaylock(1)" ];
OnSuccess = [ "unlock.target" ];
PartOf = [ "lock.target" ];
Before = [ "lock.target" ];
};
Service = {
Type = "forking";
ExecStart = "${lib.getExe pkgs.swaylock} -f -i %h/.wallpapers/28.jpg";
Restart = "on-failure";
RestartSec = 0;
};
Install.WantedBy = [ "lock.target" ];
};
}
+10
View File
@@ -0,0 +1,10 @@
{ config, ... }:
{
services.systemd-lock-handler.enable = true;
security.pam.services.swaylock = {
fprintAuth = true;
rules.auth.fprintd.order = config.security.pam.services.swaylock.rules.auth.unix.order + 50;
};
}