[WIP] Many things:
- `gammastep` - `sudo` with fingerprints that fallbacks to normal password and works with `swaylock`
This commit is contained in:
parent
74a7f488f0
commit
05af2601a0
6 changed files with 27 additions and 2 deletions
|
@ -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";
|
||||||
|
|
|
@ -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";
|
||||||
|
|
8
hmModules/sway/gammastep.nix
Normal file
8
hmModules/sway/gammastep.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
services.gammastep = {
|
||||||
|
enable = true;
|
||||||
|
latitude = "45.4";
|
||||||
|
longitude = "9.1";
|
||||||
|
tray = true;
|
||||||
|
};
|
||||||
|
}
|
|
@ -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"];
|
||||||
|
|
12
modules/fprintd/default.nix
Normal file
12
modules/fprintd/default.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
|
@ -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"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue