about summary refs log tree commit diff
path: root/modules/nixos/common
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixos/common')
-rw-r--r--modules/nixos/common/systemd.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/modules/nixos/common/systemd.nix b/modules/nixos/common/systemd.nix
index f3d5217..3972670 100644
--- a/modules/nixos/common/systemd.nix
+++ b/modules/nixos/common/systemd.nix
@@ -1,4 +1,8 @@
-{pkgs, ...}: {
+{
+  config,
+  pkgs,
+  ...
+}: {
   ark = {
     files = ["/etc/machine-id"];
     directories = ["/var/lib/systemd/coredump"];
@@ -8,6 +12,14 @@
 
   hm.systemd.user.startServices = "sd-switch";
 
+  boot.initrd.systemd = {
+    enable = true;
+    network = {
+      inherit (config.systemd.network) enable;
+      wait-online.enable = false;
+    };
+  };
+
   services.journald.extraConfig = ''
     SystemMaxUse=5G
   '';

Consider giving Nix/NixOS a try! <3