Commit 7379220

HPCesia <me@hpcesia.com>
2025-10-04 14:52:25
refactor: migrate pardofelis' boot config
1 parent dc69f5e
Changed files (2)
hosts
chaser-pardofelis
modules
hosts
chaser-pardofelis
hosts/chaser-pardofelis/boot.nix
@@ -1,25 +0,0 @@
-{
-  config,
-  lib,
-  ...
-}: {
-  boot.kernelParams = [
-    "audit=0"
-    "net.ifnames=0"
-  ];
-
-  boot.initrd = {
-    compressor = "zstd";
-    compressorArgs = ["-19" "-T0"];
-    availableKernelModules = ["virtio_blk" "virtio_pci" "virtio_scsi"];
-    systemd.enable = true;
-  };
-
-  boot.loader.grub = {
-    enable = true;
-    default = "saved";
-    # Force solve mirroredBoots error
-    # See https://github.com/nix-community/disko/issues/1068#issuecomment-2974926079
-    devices = lib.mkForce ["/dev/vda"];
-  };
-}
modules/hosts/chaser-pardofelis/boot.nix
@@ -0,0 +1,23 @@
+{lib, ...}: {
+  flake.modules.nixos."hosts/pardofelis" = {
+    boot.kernelParams = [
+      "audit=0"
+      "net.ifnames=0"
+    ];
+
+    boot.initrd = {
+      compressor = "zstd";
+      compressorArgs = ["-19" "-T0"];
+      availableKernelModules = ["virtio_blk" "virtio_pci" "virtio_scsi"];
+      systemd.enable = true;
+    };
+
+    boot.loader.grub = {
+      enable = true;
+      default = "saved";
+      # Force solve mirroredBoots error
+      # See https://github.com/nix-community/disko/issues/1068#issuecomment-2974926079
+      devices = lib.mkForce ["/dev/vda"];
+    };
+  };
+}