Added plasma6 specialisation for when other people use my devices

This commit is contained in:
Jurn Wubben 2025-04-04 11:23:07 +02:00
parent f2e0efe82b
commit 91b087f668
5 changed files with 62 additions and 3 deletions

View file

@ -1,4 +1,12 @@
{
pkgs,
lib,
inputs,
...
}: let
uwsm = lib.getExe pkgs.uwsm;
foot = lib.getExe pkgs.foot;
in {
imports = [
./hardware-configuration.nix
./virt.nix
@ -11,9 +19,25 @@
desktop = true;
portable = true;
neovim = true;
kde = true;
};
services.logind.extraConfig = ''
# dont shutdown when power button is short-pressed
HandlePowerKey=ignore
'';
home-manager.users.jsw.wayland.windowManager.hyprland.settings = {
monitor = ["eDP-1,2880x1920@120,0x0,1.5,vrr,1"];
bind = [
", XF86PowerOff, exec, ${uwsm} app -- pgrep fprintd-verify && exit 0 || ${foot} -a 'foot-fprintd' sh -c 'fprintd-verify && systemctl sleep'"
];
windowrulev2 = [
# FIXME: change to `windowrule` after hyprland update.
"float, class:foot-fprintd"
];
};
home-manager.users.jsw.wayland.windowManager.hyprland.settings.monitor = ["eDP-1,2880x1920@120,0x0,1.5,vrr,1"];
services = {
fprintd.enable = true;
udev.extraRules = ''