205a1ccc8f
- Add prepare-commit-msg git hook that generates conventional commit messages - Modularize fish configuration with separate conf.d files - Convert configuration files from .text to .source format for structured data - Add sops-nix SOPS configuration with explicit secret definitions - Upgrade age identity to single key file management approach - Add system activation script for age key management - Generate .sops.yaml for SOPS creation rules - Restructure README.md with improved table and cleaner formatting - Refactor config files to use pkgs.formats.json/toml generators - Implement YAML format for ashell and walker service configurations - Update SSH config source to use sops secrets - Convert zed and other config files to use structured .source format
30 lines
729 B
Nix
30 lines
729 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
cfg = config.boot.loader.limine;
|
|
in {
|
|
options.boot.loader.limine.bootMode = lib.mkOption {
|
|
type = lib.types.enum ["bios" "uefi"];
|
|
default = "uefi";
|
|
description = "Boot mode: BIOS (MBR) or UEFI";
|
|
};
|
|
|
|
config.boot.loader = {
|
|
limine = {
|
|
enable = true;
|
|
efiSupport = cfg.bootMode == "uefi";
|
|
biosSupport = cfg.bootMode == "bios";
|
|
biosDevice = lib.mkIf (cfg.bootMode == "bios") (lib.mkDefault "/dev/nvme1n1");
|
|
maxGenerations = 10;
|
|
style.wallpapers = [
|
|
pkgs.nixos-artwork.wallpapers.simple-dark-gray-bootloader.gnomeFilePath
|
|
];
|
|
};
|
|
grub.enable = lib.mkForce false;
|
|
systemd-boot.enable = lib.mkForce false;
|
|
};
|
|
}
|