add aurore for real
This commit is contained in:
parent
4e2d5bb8d4
commit
07322a9e9a
3 changed files with 84 additions and 3 deletions
|
@ -4,6 +4,16 @@ let
|
|||
# Import nodes
|
||||
nodes = import ./../../nodes.nix;
|
||||
myNode = nodes."${config.hostName}";
|
||||
|
||||
hasGrub = nd: lib.hasAttr "grubDevice" nd;
|
||||
|
||||
bootLoader = if hasGrub myNode then {
|
||||
grub.enable = true;
|
||||
grub.device = myNode.grubDevice;
|
||||
} else {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
@ -15,8 +25,8 @@ in
|
|||
fileSystems = myNode.fileSystems;
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.device = myNode.grubDevice;
|
||||
|
||||
boot.loader = bootLoader;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault myNode.system;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue