This commit is contained in:
Sicheng Pan 2025-12-14 13:54:53 -08:00
parent 16c57c5967
commit 4f2b849e10
Signed by: macronova
GPG key ID: CE969670FB4B4A56
8 changed files with 45 additions and 90 deletions

View file

@ -1,10 +1,9 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running `nixos-help`).
{pkgs, ...}: {
{...}: {
# Configure boot loader
boot = {
kernelPackages = pkgs.linuxPackages_latest;
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;

View file

@ -1,8 +1,5 @@
{pkgs, ...}: {
boot = {
loader.grub.zfsSupport = true;
zfs.package = pkgs.zfs_unstable;
};
{...}: {
boot.loader.grub.zfsSupport = true;
services.zfs = {
autoScrub.enable = true;

View file

@ -4,7 +4,6 @@
{pkgs, ...}: {
# Configure boot
boot = {
kernelPackages = pkgs.linuxPackages_latest;
initrd.systemd.enable = true;
loader = {
efi.canTouchEfiVariables = true;

View file

@ -1,7 +1,6 @@
{
config,
lib,
pkgs,
...
}: {
boot = {
@ -9,7 +8,6 @@
zfs = {
extraPools = ["zarchive"];
requestEncryptionCredentials = ["zactive/main"];
package = pkgs.zfs_unstable;
};
};

View file

@ -1,6 +1,5 @@
{pkgs, ...}: {
{...}: {
boot = {
kernelPackages = pkgs.linuxPackages_latest;
loader.grub.device = "/dev/sda";
tmp.cleanOnBoot = true;
};