modified: assets/avatar.png modified: home.nix modified: hosts/blackstar/nixos/configuration.nix modified: hosts/shared/nixos/shared_config.nix modified: modules/desktop/apps/art.nix modified: modules/desktop/apps/cad.nix modified: modules/desktop/apps/cam.nix modified: modules/desktop/apps/chat.nix modified: modules/desktop/apps/code.nix modified: modules/desktop/apps/godot.nix modified: modules/desktop/apps/minecraft.nix modified: modules/desktop/apps/xiv.nix modified: modules/system/audio.nix new file: modules/system/boot/.grub.nix.swp modified: modules/system/boot/grub.nix modified: pkgs/default.nix new file: pkgs/wallpaper-engine.nix
47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{ lib, config, options, pkgs, ... }:
|
|
|
|
with lib;
|
|
let cfg = config.modules.system.boot.grub;
|
|
in {
|
|
options.modules.system.boot.grub = {
|
|
enable = mkEnableOption true;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
boot.loader = {
|
|
systemd-boot.enable = false;
|
|
grub = {
|
|
# efiInstallAsRemovable = true;
|
|
enable = true;
|
|
useOSProber = true;
|
|
efiSupport = true;
|
|
fsIdentifier = "label";
|
|
devices = [ "nodev" ];
|
|
extraEntries = ''
|
|
menuentry "Reboot" {
|
|
reboot
|
|
}
|
|
menuentry "Poweroff" {
|
|
halt
|
|
}
|
|
'';
|
|
theme = pkgs.stdenv.mkDerivation {
|
|
pname = "distro-grub-themes";
|
|
version = "3.1";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "AdisonCavani";
|
|
repo = "distro-grub-themes";
|
|
rev = "v3.1";
|
|
hash = "sha256-ZcoGbbOMDDwjLhsvs77C7G7vINQnprdfI37a9ccrmPs=";
|
|
};
|
|
installPhase = "cp -r customize/nixos $out";
|
|
};
|
|
};
|
|
efi = {
|
|
canTouchEfiVariables = true;
|
|
efiSysMountPoint = "/boot";
|
|
};
|
|
};
|
|
};
|
|
}
|