This commit is contained in:
2025-04-02 20:32:37 -04:00
parent 3a444bb515
commit db35f74857
5 changed files with 33 additions and 7 deletions

View File

@@ -6,12 +6,15 @@ let
in
{
options.${namespace}.system.boot = {
enable = lib.mkEnableOption "booting";
silentBoot = lib.mkEnableOption "silent boot";
showNotch = lib.mkEnableOption "show macOS notch";
enable = lib.mkEnableOption "Enable Boot";
xenGuest = lib.mkEnableOption "Enable Xen Guest";
showNotch = lib.mkEnableOption "Show macOS Notch";
silentBoot = lib.mkEnableOption "Silent Boot";
};
config = mkIf cfg.enable {
services.xe-guest-utilities.enable = mkIf cfg.xenGuest true;
boot = {
kernelParams = lib.optionals cfg.silentBoot [
"quiet"
@@ -38,6 +41,14 @@ in
timeout = 1;
};
initrd = mkIf cfg.xenGuest {
availableKernelModules = [ "xen_blkfront" "xen_netfront" ];
kernelModules = [ "xen_netfront" "xen_blkfront" ];
supportedFilesystems = [ "ext4" "xenfs" ];
};
kernelModules = mkIf cfg.xenGuest [ "xen_netfront" "xen_blkfront" "xenfs" ];
};
};
}

View File

@@ -1,6 +1,7 @@
{ config, lib, namespace, ... }:
let
inherit (lib) mkIf mkOpt types;
inherit (lib.${namespace}) mkOpt;
inherit (lib) mkIf types;
cfg = config.${namespace}.system.disk;
in

View File

@@ -29,5 +29,16 @@ in
settings.General.EnableNetworkConfiguration = true;
};
};
# TODO - Network Configuration
# (lib.mkIf (config.network != null) {
# networking = {
# inherit (config.network) defaultGateway nameservers;
# interfaces.${config.network.interface}.ipv4.addresses = [{
# inherit (config.network) address;
# prefixLength = 24;
# }];
# };
# })
};
}