Compare commits
3 Commits
8e96b86fcd
...
a5912941e4
Author | SHA1 | Date | |
---|---|---|---|
|
a5912941e4 | ||
|
1d3d2bf7c4 | ||
568d3f8d89 |
20
flake.lock
20
flake.lock
@ -30,11 +30,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1686673969,
|
"lastModified": 1704729137,
|
||||||
"narHash": "sha256-xXyhXuMwl3tjBFWemcqnkoyJblSWrbifij/VFjO0pi4=",
|
"narHash": "sha256-JnhA+YiOFYwWxW96xJZuyIV6BI8+DgiZm2w9NtO67+c=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "9dc6bca6b0d4303697e074103684feb6a0461fcc",
|
"rev": "6225b664a76b71f01f15d8e4a93c8c2ef0e6e1fe",
|
||||||
"revCount": 2,
|
"revCount": 4,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.clerie.de/clerie/chaosevents.git"
|
"url": "https://git.clerie.de/clerie/chaosevents.git"
|
||||||
},
|
},
|
||||||
@ -219,11 +219,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-krypton": {
|
"nixpkgs-krypton": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1704194953,
|
"lastModified": 1704538339,
|
||||||
"narHash": "sha256-RtDKd8Mynhe5CFnVT8s0/0yqtWFMM9LmCzXv/YKxnq4=",
|
"narHash": "sha256-1734d3mQuux9ySvwf6axRWZRBhtcZA9Q8eftD6EZg6U=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "bd645e8668ec6612439a9ee7e71f7eac4099d4f6",
|
"rev": "46ae0210ce163b3cba6c7da08840c1d63de9c701",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -235,11 +235,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1704194953,
|
"lastModified": 1704538339,
|
||||||
"narHash": "sha256-RtDKd8Mynhe5CFnVT8s0/0yqtWFMM9LmCzXv/YKxnq4=",
|
"narHash": "sha256-1734d3mQuux9ySvwf6axRWZRBhtcZA9Q8eftD6EZg6U=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "bd645e8668ec6612439a9ee7e71f7eac4099d4f6",
|
"rev": "46ae0210ce163b3cba6c7da08840c1d63de9c701",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
../../configuration/desktop
|
../../configuration/desktop
|
||||||
|
|
||||||
./backup.nix
|
./backup.nix
|
||||||
|
./initrd.nix
|
||||||
./network.nix
|
./network.nix
|
||||||
./programs.nix
|
./programs.nix
|
||||||
];
|
];
|
||||||
|
17
hosts/krypton/initrd.nix
Normal file
17
hosts/krypton/initrd.nix
Normal 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
|
||||||
|
'';
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user