disko
This commit is contained in:
parent
3a444bb515
commit
db35f74857
@ -49,6 +49,7 @@
|
|||||||
|
|
||||||
systems.modules = {
|
systems.modules = {
|
||||||
nixos = with inputs; [
|
nixos = with inputs; [
|
||||||
|
disko.nixosModules.disko
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -6,12 +6,15 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.${namespace}.system.boot = {
|
options.${namespace}.system.boot = {
|
||||||
enable = lib.mkEnableOption "booting";
|
enable = lib.mkEnableOption "Enable Boot";
|
||||||
silentBoot = lib.mkEnableOption "silent boot";
|
xenGuest = lib.mkEnableOption "Enable Xen Guest";
|
||||||
showNotch = lib.mkEnableOption "show macOS notch";
|
showNotch = lib.mkEnableOption "Show macOS Notch";
|
||||||
|
silentBoot = lib.mkEnableOption "Silent Boot";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
services.xe-guest-utilities.enable = mkIf cfg.xenGuest true;
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelParams = lib.optionals cfg.silentBoot [
|
kernelParams = lib.optionals cfg.silentBoot [
|
||||||
"quiet"
|
"quiet"
|
||||||
@ -38,6 +41,14 @@ in
|
|||||||
|
|
||||||
timeout = 1;
|
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" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{ config, lib, namespace, ... }:
|
{ config, lib, namespace, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf mkOpt types;
|
inherit (lib.${namespace}) mkOpt;
|
||||||
|
inherit (lib) mkIf types;
|
||||||
|
|
||||||
cfg = config.${namespace}.system.disk;
|
cfg = config.${namespace}.system.disk;
|
||||||
in
|
in
|
||||||
|
@ -29,5 +29,16 @@ in
|
|||||||
settings.General.EnableNetworkConfiguration = true;
|
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;
|
||||||
|
# }];
|
||||||
|
# };
|
||||||
|
# })
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -5,13 +5,15 @@ in
|
|||||||
{
|
{
|
||||||
reichard = {
|
reichard = {
|
||||||
system = {
|
system = {
|
||||||
boot = enabled;
|
boot = {
|
||||||
networking = enabled; # TODO - Network Config
|
enable = true;
|
||||||
|
xenGuest = true;
|
||||||
|
};
|
||||||
disk = {
|
disk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
diskID = "/dev/xvda";
|
diskID = "/dev/xvda";
|
||||||
};
|
};
|
||||||
# TODO - Xen Guest
|
networking = enabled; # TODO - Network Config
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user