add boot vars, and pass name arg

This commit is contained in:
asyncnomi 2025-07-18 02:05:41 +02:00
parent 6447202f7f
commit b153246f90
7 changed files with 279 additions and 21 deletions

11
shared/commons/boot.nix Normal file
View file

@ -0,0 +1,11 @@
{ ... }:
let
# Import nodes
nodes = import ./../../nodes.nix;
myNode = nodes."${config.hostName}";
in
{
boot.loader.grub.enable = true;
boot.loader.grub.device = myNode.grubDevice;
}