mirror of
https://github.com/blahai/nyx.git
synced 2025-06-09 14:53:01 -04:00
Add theia stuffies
This commit is contained in:
parent
452e600c5f
commit
ad09e551fd
11 changed files with 135 additions and 2 deletions
|
@ -1 +1,31 @@
|
|||
{}
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf mkDefault;
|
||||
inherit (lib.options) mkOption;
|
||||
inherit (lib.types) nullOr str;
|
||||
cfg = config.olympus.system.boot;
|
||||
in {
|
||||
options.olympus.system.boot.grub = {
|
||||
device = mkOption {
|
||||
type = nullOr str;
|
||||
default = "nodev";
|
||||
description = "The device to install the bootloader to.";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf (cfg.loader == "grub") {
|
||||
boot.loader.grub = {
|
||||
enable = mkDefault true;
|
||||
useOSProber = false;
|
||||
efiSupport = false;
|
||||
enableCryptodisk = mkDefault false;
|
||||
inherit (cfg.grub) device;
|
||||
theme = null;
|
||||
backgroundColor = null;
|
||||
splashImage = null;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
inherit (config.olympus) device;
|
||||
inherit (lib.modules) mkIf;
|
||||
in {
|
||||
config = mkIf (device.cpu == "amd") {
|
||||
config = mkIf (device.cpu == "amd" || device.cpu == "vm-amd") {
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
|
||||
boot.kernelModules = [
|
||||
|
|
|
@ -9,6 +9,7 @@ in {
|
|||
type = types.nullOr (
|
||||
types.enum [
|
||||
"amd"
|
||||
"vm-amd"
|
||||
]
|
||||
);
|
||||
default = null;
|
||||
|
|
1
modules/profiles/headless/default.nix
Normal file
1
modules/profiles/headless/default.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
1
modules/profiles/laptop/default.nix
Normal file
1
modules/profiles/laptop/default.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
1
modules/profiles/server/default.nix
Normal file
1
modules/profiles/server/default.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
Loading…
Add table
Add a link
Reference in a new issue