NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(hosts): cleanup pre-boot commands for stellapent-cier

we're going to run lairland headlessly soon after some wifi dongle
chaos later this week

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+45 -45
+45 -45
hosts/stellapent-cier/configuration.nix
··· 58 58 59 59 # portable setup 60 60 boot.initrd.kernelModules = [ "usb_storage" ]; 61 - boot.initrd.preDeviceCommands = '' 62 - check_root_device() { 63 - ROOT_UUID="09170382-8b7e-47cc-8fde-d9035039b785" 64 - 65 - # 'test -e' checks if the file/device node exists 66 - if test -e "/dev/disk/by-uuid/$ROOT_UUID"; then 67 - return 0 # Success 68 - else 69 - return 1 # Failure 70 - fi 71 - } 72 - 73 - found() { 74 - echo "Device found, continuing boot..." 75 - exit 0 76 - } 77 - 78 - if ! check_root_device; then 79 - echo "Root device not found, retrying in 5 seconds..." 80 - sleep 5 81 - else 82 - found 83 - fi 84 - 85 - if ! check_root_device; then 86 - echo "Root device not found, retrying in 10 seconds..." 87 - sleep 10 88 - else 89 - found 90 - fi 91 - 92 - if ! check_root_device; then 93 - echo "Root device not found, retrying for last time in 20 seconds..." 94 - sleep 20 95 - else 96 - found 97 - fi 98 - 99 - 100 - if ! check_root_device; then 101 - echo "WARNING: Boot device not found, proceeding with caution." 102 - else 103 - found 104 - fi 105 - ''; 61 + #boot.initrd.preDeviceCommands = '' 62 + # check_root_device() { 63 + # ROOT_UUID="09170382-8b7e-47cc-8fde-d9035039b785" 64 + # 65 + # # 'test -e' checks if the file/device node exists 66 + # if test -e "/dev/disk/by-uuid/$ROOT_UUID"; then 67 + # return 0 # Success 68 + # else 69 + # return 1 # Failure 70 + # fi 71 + # } 72 + # 73 + # found() { 74 + # echo "Device found, continuing boot..." 75 + # exit 0 76 + # } 77 + # 78 + # if ! check_root_device; then 79 + # echo "Root device not found, retrying in 5 seconds..." 80 + # sleep 5 81 + # else 82 + # found 83 + # fi 84 + # 85 + # if ! check_root_device; then 86 + # echo "Root device not found, retrying in 10 seconds..." 87 + # sleep 10 88 + # else 89 + # found 90 + # fi 91 + # 92 + # if ! check_root_device; then 93 + # echo "Root device not found, retrying for last time in 20 seconds..." 94 + # sleep 20 95 + # else 96 + # found 97 + # fi 98 + # 99 + # 100 + # if ! check_root_device; then 101 + # echo "WARNING: Boot device not found, proceeding with caution." 102 + # else 103 + # found 104 + # fi 105 + #''; 106 106 107 107 networking = { 108 108 hostName = "stellapent-cier";