mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-08 05:49:23 +02:00
Switch to snowfall flake configuration
This commit is contained in:
parent
bc0766220d
commit
d322a4f0a8
26 changed files with 1042 additions and 465 deletions
23
modules/system/boot/uboot/default.nix
Normal file
23
modules/system/boot/uboot/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ options, config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
#with lib.internal;
|
||||
let cfg = config.custom.system.boot.uboot;
|
||||
in
|
||||
{
|
||||
options.custom.system.boot.uboot = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable booting on uboot system.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
boot = {
|
||||
# Boot loader configutation
|
||||
loader = {
|
||||
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)
|
||||
grub.enable = false;
|
||||
# Enables the generation of /boot/extlinux/extlinux.conf
|
||||
generic-extlinux-compatible.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue