about summary refs log tree commit diff
path: root/modules/nixos/common
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-12-18 02:58:27 +0300
committerAzat Bahawi <azat@bahawi.net>2023-12-18 02:58:27 +0300
commit306f35c135251e0b6760ac191c3111b030727813 (patch)
treeb2425f2d7b6a8bd4da80b886945c0f2a1b25c0df /modules/nixos/common
parent2023-12-15 (diff)
2023-12-18
Diffstat (limited to '')
-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