add boot vars, and pass name arg
This commit is contained in:
parent
6447202f7f
commit
b153246f90
7 changed files with 279 additions and 21 deletions
11
shared/commons/boot.nix
Normal file
11
shared/commons/boot.nix
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue