mirror of
https://github.com/larstvei/nix-config.git
synced 2025-12-31 12:10:12 +00:00
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
imports = [
|
|
./keyboard
|
|
./hardware
|
|
../../modules/base
|
|
../../modules/nixos
|
|
../../modules/nixos/graphical
|
|
];
|
|
|
|
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";
|
|
}
|