Use NixOS's hardware detect on install
I think it will be more flexible like that, veewee can also target kvm and other virtualisation environments.
This commit is contained in:
parent
cd7fcd669a
commit
eae6fdeeda
|
@ -1,8 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
require = [ <nixos/modules/installer/scan/not-detected.nix> ];
|
||||
require = [ ./hardware-configuration.nix ];
|
||||
boot = {
|
||||
initrd.kernelModules = [ "ata_piix" "ahci" ];
|
||||
loader.grub.device = "/dev/sda";
|
||||
};
|
||||
environment.systemPackages = with pkgs; [ git ruby rubygems gnumake gcc ];
|
||||
|
@ -20,7 +19,6 @@
|
|||
services = {
|
||||
dbus.enable = true;
|
||||
openssh.enable = true;
|
||||
virtualbox.enable = true;
|
||||
};
|
||||
users = {
|
||||
extraGroups = [ { name = "vagrant"; } { name = "vboxsf"; } ];
|
||||
|
|
|
@ -16,9 +16,8 @@ session = {
|
|||
'w', '<Enter>',
|
||||
'mkfs.ext4 -j -L nixos /dev/sda1', '<Enter>',
|
||||
'mount LABEL=nixos /mnt', '<Enter>',
|
||||
'curl -O http://%IP%:%PORT%/configuration.nix &&', '<Enter>',
|
||||
'mkdir -p /mnt/etc/nixos &&', '<Enter>',
|
||||
'mv configuration.nix /mnt/etc/nixos &&', '<Enter>',
|
||||
'nixos-option --install', '<Enter>',
|
||||
'curl http://%IP%:%PORT%/configuration.nix > /mnt/etc/nixos/configuration.nix &&', '<Enter>',
|
||||
'nixos-install &&', '<Enter>',
|
||||
'reboot', '<Enter>',
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue