Hallucinate a boot loader or some shit
This commit is contained in:
@@ -2,7 +2,8 @@
|
|||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running 'nixos-help').
|
# and in the NixOS manual (accessible by running 'nixos-help').
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
unstable = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz") { config = { allowUnfree = true; }; };
|
unstable = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz") { config = { allowUnfree = true; }; };
|
||||||
@@ -14,10 +15,23 @@ in
|
|||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
boot = {
|
||||||
boot.loader.grub.enable = false;
|
kernelPackages = mkDefault pkgs.linuxPackages_latest;
|
||||||
# boot.loader.grub.device = "/dev/sda";
|
|
||||||
# boot.loader.grub.useOSProber = true;
|
loader = {
|
||||||
|
efi.canTouchEfiVariables = mkDefault true;
|
||||||
|
grub = {
|
||||||
|
enable = mkDefault true;
|
||||||
|
default = mkDefault "saved";
|
||||||
|
device = mkDefault "nodev";
|
||||||
|
extraEntries = mkDefault "GRUB_SAVEDEFAULT=true";
|
||||||
|
efiSupport = mkDefault true;
|
||||||
|
useOSProber = mkDefault true;
|
||||||
|
theme = mkDefault "${pkgs.kdePackages.breeze-grub}/grub/themes/breeze";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
supportedFilesystems = mkDefault [ "ntfs" ];
|
||||||
|
};
|
||||||
|
|
||||||
networking.hostName = "nixos"; # Define your hostname.
|
networking.hostName = "nixos"; # Define your hostname.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|||||||
Reference in New Issue
Block a user