dolomite: bandwagon support
This commit is contained in:
parent
af11897dda
commit
d2013a50d4
5 changed files with 99 additions and 4 deletions
13
machines/dolomite/lightsail.nix
Normal file
13
machines/dolomite/lightsail.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
let
|
||||
cfg = config.isLightsail;
|
||||
in
|
||||
{
|
||||
imports = [ "${modulesPath}/virtualisation/amazon-image.nix" ];
|
||||
options = {
|
||||
isLightsail = lib.mkEnableOption "Lightsail instance";
|
||||
};
|
||||
config = lib.mkIf cfg.isLightsail{
|
||||
boot.loader.grub.device = lib.mkForce "/dev/nvme0n1";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue