1
0

Compare commits

..

3 Commits

Author SHA1 Message Date
Flake Update Bot
a5912941e4 Flake update 2024-01-09T02:03+00:00 2024-01-09 03:04:01 +01:00
Flake Update Bot
1d3d2bf7c4 Update from master 2024-01-09T02:03+00:00 2024-01-09 03:03:02 +01:00
568d3f8d89 hosts/krypton: Turn on keyboard backlight and display battery levels at cryptsetup askpass 2024-01-08 15:44:28 +01:00
3 changed files with 28 additions and 10 deletions

View File

@ -30,11 +30,11 @@
]
},
"locked": {
"lastModified": 1686673969,
"narHash": "sha256-xXyhXuMwl3tjBFWemcqnkoyJblSWrbifij/VFjO0pi4=",
"lastModified": 1704729137,
"narHash": "sha256-JnhA+YiOFYwWxW96xJZuyIV6BI8+DgiZm2w9NtO67+c=",
"ref": "refs/heads/main",
"rev": "9dc6bca6b0d4303697e074103684feb6a0461fcc",
"revCount": 2,
"rev": "6225b664a76b71f01f15d8e4a93c8c2ef0e6e1fe",
"revCount": 4,
"type": "git",
"url": "https://git.clerie.de/clerie/chaosevents.git"
},
@ -219,11 +219,11 @@
},
"nixpkgs-krypton": {
"locked": {
"lastModified": 1704194953,
"narHash": "sha256-RtDKd8Mynhe5CFnVT8s0/0yqtWFMM9LmCzXv/YKxnq4=",
"lastModified": 1704538339,
"narHash": "sha256-1734d3mQuux9ySvwf6axRWZRBhtcZA9Q8eftD6EZg6U=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "bd645e8668ec6612439a9ee7e71f7eac4099d4f6",
"rev": "46ae0210ce163b3cba6c7da08840c1d63de9c701",
"type": "github"
},
"original": {
@ -235,11 +235,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1704194953,
"narHash": "sha256-RtDKd8Mynhe5CFnVT8s0/0yqtWFMM9LmCzXv/YKxnq4=",
"lastModified": 1704538339,
"narHash": "sha256-1734d3mQuux9ySvwf6axRWZRBhtcZA9Q8eftD6EZg6U=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "bd645e8668ec6612439a9ee7e71f7eac4099d4f6",
"rev": "46ae0210ce163b3cba6c7da08840c1d63de9c701",
"type": "github"
},
"original": {

View File

@ -8,6 +8,7 @@
../../configuration/desktop
./backup.nix
./initrd.nix
./network.nix
./programs.nix
];

17
hosts/krypton/initrd.nix Normal file
View File

@ -0,0 +1,17 @@
{ ... }:
{
boot.initrd.kernelModules = [ "thinkpad_acpi" ];
boot.initrd.preLVMCommands = ''
# Turn on keyboard backlight before asking for drive encryption password
echo 1 > /sys/class/leds/tpacpi::kbd_backlight/brightness
# Show battery levels
echo
echo "Battery level: External $(cat /sys/class/power_supply/BAT1/capacity)% Internal $(cat /sys/class/power_supply/BAT0/capacity)%"
echo
'';
}