After following usb/efi install instructions I get this error:
$ nixos-rebuild switch
building Nix...
building the system configuration...
updating Grub 2 menu...
installing the GRUB 2 boot loader on /dev/sda...
source_dir doesn't exist. Please specify --target or --directory
/nix/store/bv72ysa59y67hvpl5czxi429wrn5n98h-install-grub.pl:
installation of GRUB on /dev/sda failed
Here is information I thought was relevant. If I missed anything let
me know and I'll include it.
my nix configuration:
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda";
nixpkgs.config.allowUnfree = true;
networking.hostName = "cody-nixos"; # Define your hostname.
networking.wireless.enable = true; # Enables wireless.
# Select internationalisation properties.
# i18n = {
# consoleFont = "lat9w-16";
# consoleKeyMap = "us";
# defaultLocale = "en_US.UTF-8";
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.autorun = true;
services.xserver.synaptics.enable = true;
services.xserver.synaptics.twoFingerScroll = true;
services.xserver.videoDrivers = ["nvidia"];
services.xserver.layout = "us";
services.xserver.xkbOptions = "ctrl:swapcaps";
# Enable xmonad
services.xserver.windowManager.xmonad.enable = true;
services.xserver.windowManager.default = "xmonad";
services.xserver.desktopManager.default = "none";
# Enable the KDE Desktop Environment.
# services.xserver.displayManager.kdm.enable = true;
# services.xserver.desktopManager.kde4.enable = true;
environment.systemPackages = with pkgs; [
bumblebee
dmenu
haskellPlatform
haskellPackages.xmobar
haskellPackages.xmonadContrib
haskellPackages.xmonadExtras
trayer
rxvt_unicode
vim
emacs
git
firefox
# icedove
# utilities
xclip
#virtualbox
];
users.extraUsers.cody =
{ createHome = true;
home = "/home/cody";
description = "Cody Goodman";
extraGroups = [ "wheel" ];
useDefaultShell = true;
};
}
hardware-configuration.nix:
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot.initrd.availableKernelModules = [ "xhci_hcd" "ehci_pci" "ahci"
"usb_storage" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/sda9";
fsType = "ext4";
};
swapDevices =[ ];
nix.maxJobs = 4;
}
partition information:
Disk /dev/sda: 698.7 GiB, 750156374016 bytes, 1465149168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 7F6EA309-1BAB-4D4A-9090-5F8ED70708C7
Device Start End Size Type
/dev/sda1 2048 616447 300M EFI System
/dev/sda2 616448 2459647 900M Windows recovery environment
/dev/sda3 2459648 2721791 128M Microsoft reserved
/dev/sda4 2721792 325502975 153.9G Microsoft basic data
/dev/sda5 518346752 783972351 126.7G Microsoft basic data
/dev/sda6 325502976 518346751 92G Microsoft basic data
/dev/sda7 944291840 1219860479 131.4G Microsoft basic data
/dev/sda8 1219860480 1234509823 7G Linux swap
/dev/sda9 1234509824 1464227839 109.6G Linux filesystem
/dev/sda10 1464227840 1465149134 449.9M EFI System
/dev/sda11 783972352 944291839 76.5G Microsoft basic data
Disk /dev/sdb: 14.9 GiB, 16026435072 bytes, 31301631 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0000a5e0
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 14712831 7355392 b W95 FAT32
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev