[WIP] Many things:

- `gammastep`
- `sudo` with fingerprints that fallbacks to normal password and works
  with `swaylock`
This commit is contained in:
Andrea Ciceri 2022-10-03 15:41:03 +02:00
parent 74a7f488f0
commit 05af2601a0
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
6 changed files with 27 additions and 2 deletions

View file

@ -33,8 +33,8 @@
plugins = [ plugins = [
{ {
name = "nix-zsh-completions"; name = "nix-zsh-completions";
src = pkgs.nix-zsh-completions;
file = "share/zsh/plugins/nix/nix-zsh-completions.plugin.zsh"; file = "share/zsh/plugins/nix/nix-zsh-completions.plugin.zsh";
src = pkgs.nix-zsh-completions;
} }
{ {
name = "spaceship"; name = "spaceship";

View file

@ -5,6 +5,7 @@
}: { }: {
imports = [ imports = [
./waybar.nix ./waybar.nix
./gammastep.nix
../foot ../foot
]; ];
config = { config = {
@ -26,6 +27,9 @@
}; };
}; };
# TODO check if work (just wait?)
services.swayidle.enable = true;
wayland = { wayland = {
windowManager.sway = let windowManager.sway = let
modifier = "Mod4"; modifier = "Mod4";

View file

@ -0,0 +1,8 @@
{
services.gammastep = {
enable = true;
latitude = "45.4";
longitude = "9.1";
tray = true;
};
}

View file

@ -23,6 +23,7 @@
"bluetooth" "bluetooth"
"docker" "docker"
"transmission" "transmission"
"fprintd"
]; ];
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod"]; boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod"];

View file

@ -0,0 +1,12 @@
{pkgs, ...}: {
services.fprintd = {
enable = true;
};
security.polkit.enable = true; # TODO needed?
security.pam.services.swaylock.text = ''
auth sufficient pam_unix.so try_first_pass likeauth nullok
auth sufficient pam_fprintd.so
'';
}

View file

@ -20,7 +20,7 @@
substituters = [ substituters = [
"https://cache.iog.io" "https://cache.iog.io"
"https://mlabs.cachix.org" "https://mlabs.cachix.org"
"httos://aciceri-fleet.cachix.org" "https://aciceri-fleet.cachix.org"
]; ];
}; };