summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-09-09 22:00:07 +0530
committersinanmohd <sinan@sinanmohd.com>2024-09-09 22:01:06 +0530
commit34a96cb2218f7cff7a971cf4f650ae225ce9976c (patch)
tree50cc2fcd94a828e2462847a3ba558c6b0fdb4f4e /os
parentfcdd2a81973237c8bc88da6f27e065217ab58447 (diff)
common: enable systemd in initrd
Diffstat (limited to 'os')
-rw-r--r--os/cez/hardware-configuration.nix5
-rw-r--r--os/common/configuration.nix1
2 files changed, 2 insertions, 4 deletions
diff --git a/os/cez/hardware-configuration.nix b/os/cez/hardware-configuration.nix
index 90a73b9..a0efab6 100644
--- a/os/cez/hardware-configuration.nix
+++ b/os/cez/hardware-configuration.nix
@@ -21,11 +21,8 @@
blacklistedKernelModules = [ "k10temp" ];
extraModulePackages = with config.boot.kernelPackages; [ zenpower ];
- initrd = {
- systemd.enable = true;
- luks.devices."crypt".device =
+ initrd.luks.devices."crypt".device =
"/dev/disk/by-uuid/84acd784-caad-41a1-a2e4-39468d01fefd";
- };
};
fileSystems = {
diff --git a/os/common/configuration.nix b/os/common/configuration.nix
index 8026b9f..57d40c4 100644
--- a/os/common/configuration.nix
+++ b/os/common/configuration.nix
@@ -37,6 +37,7 @@ in {
boot = {
tmp.useTmpfs = true;
loader.timeout = 1;
+ initrd.systemd.enable = true;
};
programs.bash.promptInit = ''