nix-config/machines/thinkpad/default.nix

52 lines
1.1 KiB
Nix

{
imports = [
./keyboard
./hardware
../../modules/base
../../modules/nixos
];
home-manager.users.larstvei.imports = [
../../modules/home/full
../../modules/desktop
];
services.fprintd.enable = true;
security.pam.services = {
login.fprintAuth = true;
sudo.fprintAuth = true;
hyprlock.fprintAuth = true;
};
systemd.services.disable-thinkpad-leds = {
description = "Disable ThinkPad lid logo LED and power button led";
wantedBy = [
"basic.target"
"suspend.target"
];
after = [
"hibernate.target"
"hybrid-sleep.target"
"suspend-then-hibernate.target"
"suspend.target"
"sysinit.target"
];
serviceConfig = {
Type = "oneshot";
ExecStart = [
"/bin/sh -c 'echo 0 > /sys/class/leds/tpacpi::power/brightness'"
"/bin/sh -c 'echo 0 > /sys/class/leds/tpacpi::lid_logo_dot/brightness'"
];
};
};
networking.hostName = "larstvei-think";
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
system.stateVersion = "25.05";
}