Add yubilock quirk and enable kubo service

This commit is contained in:
2025-11-09 12:28:22 +03:00
parent 06e871c578
commit c319570c30
3 changed files with 19 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ in
quirks [
"development"
"steam"
"yubilock"
]
);
@@ -47,6 +48,7 @@ in
};
lact.enable = true;
};
systemd.services.calibre-web.serviceConfig.environment = lib.mkForce "";
systemd.services.calibre-web.environment.CACHE_DIR = "/var/cache/calibre-web";
@@ -74,6 +76,7 @@ in
"audio"
"users"
"gamemode"
config.services.kubo.group
];
});
groups = {

11
quirks/yubilock.nix Normal file
View File

@@ -0,0 +1,11 @@
{ pkgs, ... }:
{
services.udev.extraRules = ''
ACTION=="remove",\
ENV{ID_BUS}=="usb",\
ENV{ID_MODEL_ID}=="0407",\
ENV{ID_VENDOR_ID}=="1050",\
ENV{ID_VENDOR}=="Yubico",\
RUN+="${pkgs.systemd}/bin/loginctl lock-sessions"
'';
}

View File

@@ -39,6 +39,11 @@
};
services = {
kubo = {
enable = lib.mkDefault true;
enableGC = lib.mkDefault true;
};
openssh = {
enable = lib.mkDefault true;
settings = {