Reshuffling stuff
This commit is contained in:
+19
-25
@@ -341,37 +341,31 @@ in
|
|||||||
|
|
||||||
** =generated/modules/system/boot.nix=
|
** =generated/modules/system/boot.nix=
|
||||||
#+BEGIN_SRC nix :tangle generated/modules/system/boot.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/modules/system/boot.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ lib, config, pkgs, ... }:
|
# ./generated/hosts/traveldroid/traveldroid.nix
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
coreEnabled = config.mySystem.system.core.enable or false;
|
coreEnabled = config.mySystem.system.core.enable or false;
|
||||||
in
|
in lib.mkIf coreEnabled {
|
||||||
{
|
boot = {
|
||||||
options.mySystem.system.locale.enable = lib.mkEnableOption "Boot settings";
|
initrd = {
|
||||||
|
verbose = false;
|
||||||
|
kernelModules = [ ];
|
||||||
|
};
|
||||||
|
|
||||||
config = lib.mkIf (coreEnabled || config.mySystem.system.locale.enable) {
|
extraModulePackages = [ ];
|
||||||
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
kernelParams = [ "silent" ];
|
||||||
|
|
||||||
boot = {
|
consoleLogLevel = 0;
|
||||||
initrd = {
|
plymouth.enable = true;
|
||||||
verbose = false; # its a lot of logs. dont need it, unless we do.
|
supportedFilesystems = [ "ntfs" ];
|
||||||
kernelModules = [ ]; # no kernel modules on boot
|
|
||||||
};
|
|
||||||
|
|
||||||
extraModulePackages = [ ]; # no extra packages on boot either
|
loader = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest; # latest greatest linux kernel
|
systemd-boot.enable = true;
|
||||||
kernelParams = [ "silent" ]; # quiet those logs
|
systemd-boot.configurationLimit = 10;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
consoleLogLevel = 0; # quiten more logs
|
timeout = 5;
|
||||||
plymouth.enable = true; # graphical boot animation instead
|
|
||||||
|
|
||||||
supportedFilesystems = [ "ntfs" ]; # should see the ntfs (windows)
|
|
||||||
|
|
||||||
loader = {
|
|
||||||
systemd-boot.enable = true; # systemd-boot
|
|
||||||
systemd-boot.configurationLimit = 10;
|
|
||||||
efi.canTouchEfiVariables = true; # allow editing efi to edit the boot loader
|
|
||||||
timeout = 5; # grub timeout to make a selection
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,34 +1,28 @@
|
|||||||
{ lib, config, pkgs, ... }:
|
# ./generated/hosts/traveldroid/traveldroid.nix
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
coreEnabled = config.mySystem.system.core.enable or false;
|
coreEnabled = config.mySystem.system.core.enable or false;
|
||||||
in
|
in lib.mkIf coreEnabled {
|
||||||
{
|
boot = {
|
||||||
options.mySystem.system.locale.enable = lib.mkEnableOption "Boot settings";
|
initrd = {
|
||||||
|
verbose = false;
|
||||||
|
kernelModules = [ ];
|
||||||
|
};
|
||||||
|
|
||||||
config = lib.mkIf (coreEnabled || config.mySystem.system.locale.enable) {
|
extraModulePackages = [ ];
|
||||||
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
kernelParams = [ "silent" ];
|
||||||
|
|
||||||
boot = {
|
consoleLogLevel = 0;
|
||||||
initrd = {
|
plymouth.enable = true;
|
||||||
verbose = false; # its a lot of logs. dont need it, unless we do.
|
supportedFilesystems = [ "ntfs" ];
|
||||||
kernelModules = [ ]; # no kernel modules on boot
|
|
||||||
};
|
|
||||||
|
|
||||||
extraModulePackages = [ ]; # no extra packages on boot either
|
loader = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest; # latest greatest linux kernel
|
systemd-boot.enable = true;
|
||||||
kernelParams = [ "silent" ]; # quiet those logs
|
systemd-boot.configurationLimit = 10;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
consoleLogLevel = 0; # quiten more logs
|
timeout = 5;
|
||||||
plymouth.enable = true; # graphical boot animation instead
|
|
||||||
|
|
||||||
supportedFilesystems = [ "ntfs" ]; # should see the ntfs (windows)
|
|
||||||
|
|
||||||
loader = {
|
|
||||||
systemd-boot.enable = true; # systemd-boot
|
|
||||||
systemd-boot.configurationLimit = 10;
|
|
||||||
efi.canTouchEfiVariables = true; # allow editing efi to edit the boot loader
|
|
||||||
timeout = 5; # grub timeout to make a selection
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user