modified: flake.nix modified: hosts/blackstar/nixos/configuration.nix modified: hosts/shared/nixos/shared_config.nix new file: modules/default.nix new file: modules/desktop/apps/art.nix new file: modules/desktop/apps/cad.nix new file: modules/desktop/apps/cam.nix new file: modules/desktop/apps/chat.nix new file: modules/desktop/apps/code.nix new file: modules/desktop/apps/godot.nix new file: modules/desktop/apps/minecraft.nix new file: modules/desktop/apps/xiv.nix new file: modules/system/audio.nix new file: modules/system/boot/grub.nix new file: modules/system/locale.nix new file: modules/system/network.nix modified: pkgs/default.nix
43 lines
No EOL
1.1 KiB
Nix
43 lines
No EOL
1.1 KiB
Nix
{ lib, config, options, pkgs, ... }:
|
|
|
|
with lib;
|
|
let cfg = config.modules.system.boot.grub;
|
|
in {
|
|
options.modules.system.boot.grub = {
|
|
enable = mkBoolOpt true;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
boot.loader = {
|
|
grub = {
|
|
enable = true;
|
|
useOSProver = 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;
|
|
};
|
|
};
|
|
};
|
|
} |