aboutsummaryrefslogtreecommitdiff
path: root/hosts/carmel
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/carmel')
-rw-r--r--hosts/carmel/boot.nix14
-rw-r--r--hosts/carmel/default.nix11
2 files changed, 15 insertions, 10 deletions
diff --git a/hosts/carmel/boot.nix b/hosts/carmel/boot.nix
new file mode 100644
index 0000000..606215e
--- /dev/null
+++ b/hosts/carmel/boot.nix
@@ -0,0 +1,14 @@
+{ ... }:
+
+{
+ boot = {
+ # get an IP address on boot, so we can unlock the root disk remotely
+ kernelParams = [ "ip=dhcp" ];
+ initrd = {
+ # driver for the NIC, required in order to get an IP address
+ kernelModules = [ "igb" ];
+ };
+ };
+
+ my.system.boot = { initrd = { network.enable = true; }; };
+}
diff --git a/hosts/carmel/default.nix b/hosts/carmel/default.nix
index 7e48b5d..61599d6 100644
--- a/hosts/carmel/default.nix
+++ b/hosts/carmel/default.nix
@@ -3,6 +3,7 @@
{
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
+ ./boot.nix
./sound.nix
./networking.nix
../common/desktop
@@ -10,16 +11,6 @@
../common/system/boot-ssh.nix
];
- boot = {
- # get an IP address on boot, so we can unlock the root disk remotely
- kernelParams = [ "ip=dhcp" ];
- initrd = {
- luks.devices."system".allowDiscards = true;
- # driver for the NIC, required in order to get an IP address
- kernelModules = [ "igb" ];
- };
- };
-
hardware.opengl.driSupport = true;
# This value determines the NixOS release from which the default