Enable power profiles and fprintd

This commit is contained in:
Filippo Berto 2021-10-24 19:10:35 +02:00
parent 31f4464c1e
commit 67ce8f041c
3 changed files with 55 additions and 0 deletions

20
modules/keep.nix Normal file
View file

@ -0,0 +1,20 @@
{ pkgs, ... }:
with pkgs;
let
cmd = "${google-chrome}/bin/google-chrome-stable --app=https://keep.google.com";
desktopItem = pkgs.makeDesktopItem
{
name = "Keep";
type = "Application";
exec = cmd;
icon = "keep";
desktopName = "Keep";
comment = "Google Keep note app";
categories = "Office;";
};
in
{
home.packages = [
desktopItem
];
}

21
modules/whatsapp.nix Normal file
View file

@ -0,0 +1,21 @@
{ pkgs, ... }:
with pkgs;
let
link = "https://web.whatsapp.com";
cmd = "${google-chrome}/bin/google-chrome-stable --app=${link}";
desktopItem = pkgs.makeDesktopItem
{
name = "Whatsapp";
type = "Application";
exec = cmd;
icon = "whatsapp";
desktopName = "Whatsapp";
comment = "Whatsapp web client";
categories = "Office;";
};
in
{
home.packages = [
desktopItem
];
}

View file

@ -229,9 +229,23 @@
notifications.x11.enable = true;
};
# FPRINTD
services.fprintd = {
enable = true;
tod = {
enable = true;
driver = pkgs.libfprint-2-tod1-goodix;
};
};
security.pam.services.login.fprintAuth = true;
security.pam.services.xscreensaver.fprintAuth = true;
# Clamav
services.clamav = { daemon.enable = true; updater.enable = true; };
# Power-profiles
services.power-profiles.daemon.enable = true;
# Virtualisation
virtualisation = {
kvmgt.enable = true;