Reorganised nix code
Added firefox extension Ports now not opened by default on portable devices.
This commit is contained in:
parent
3b6d07e383
commit
d3776c0551
8 changed files with 36 additions and 26 deletions
|
|
@ -1,8 +1,26 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
options.niksos.fingerprint = lib.mkEnableOption "fingerprint support.";
|
||||
config.services.fprintd.enable = config.niksos.fingerprint;
|
||||
}: let
|
||||
inherit (config.niksos) fingerprint desktop;
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
uwsm = lib.getExe pkgs.uwsm;
|
||||
foot = lib.getExe pkgs.foot;
|
||||
in {
|
||||
options.niksos.fingerprint = mkEnableOption "fingerprint support.";
|
||||
|
||||
config = mkIf fingerprint {
|
||||
services.fprintd.enable = true;
|
||||
|
||||
home-manager.users.jsw.wayland.windowManager.hyprland.settings = mkIf desktop {
|
||||
bind = [
|
||||
", XF86PowerOff, exec, ${uwsm} app -- pgrep fprintd-verify && exit 0 || ${foot} -a 'foot-fprintd' sh -c 'fprintd-verify && systemctl sleep'"
|
||||
];
|
||||
windowrule = [
|
||||
"float, class:foot-fprintd"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue