nixbook: remove decryption script, quiet boot
This commit is contained in:
parent
5dc7980032
commit
fbcb58a26b
1 changed files with 12 additions and 4 deletions
|
|
@ -23,14 +23,17 @@ in {
|
||||||
options = ["subvol=@" "compress=zstd" "autodefrag"];
|
options = ["subvol=@" "compress=zstd" "autodefrag"];
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.postDeviceCommands = pkgs.lib.mkBefore (decrypt {
|
boot.initrd.luks.devices."usbkey" = {
|
||||||
keydevice = "/dev/disk/by-id/usb-Generic_Flash_Disk_BCC97785-0:0";
|
device = "/dev/disk/by-id/usb-Generic_Flash_Disk_BCC97785-0:0";
|
||||||
keypartname = "usbkey";
|
};
|
||||||
});
|
|
||||||
|
|
||||||
boot.initrd.luks.devices."cryptroot" = {
|
boot.initrd.luks.devices."cryptroot" = {
|
||||||
device = "/dev/disk/by-uuid/570cc51f-bd5c-4bee-a18f-f6aabaf60881";
|
device = "/dev/disk/by-uuid/570cc51f-bd5c-4bee-a18f-f6aabaf60881";
|
||||||
keyFileSize = 4096;
|
keyFileSize = 4096;
|
||||||
|
preOpenCommands = ''
|
||||||
|
mkdir -m 0755 -p /key
|
||||||
|
mount -n -t vfat -o ro /dev/mapper/usbkey /key
|
||||||
|
'';
|
||||||
keyFile = "/key/keyfile";
|
keyFile = "/key/keyfile";
|
||||||
preLVM = false;
|
preLVM = false;
|
||||||
};
|
};
|
||||||
|
|
@ -54,6 +57,11 @@ in {
|
||||||
|
|
||||||
swapDevices = [{device = "/swap/swapfile";}];
|
swapDevices = [{device = "/swap/swapfile";}];
|
||||||
|
|
||||||
|
boot.plymouth.enable = true;
|
||||||
|
boot.initrd.verbose = false;
|
||||||
|
boot.consoleLogLevel = 1;
|
||||||
|
boot.kernelParams = [ "quiet" "udev.log_level=3" ];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue