thinkpad: revert to btrfs

zfs just randomly decided to fail
This commit is contained in:
Rouven Seifert 2024-03-22 17:24:57 +01:00
parent 1c2f5c95e6
commit a16bc598a4
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 40 additions and 32 deletions

View file

@ -24,7 +24,7 @@
# Use the systemd-boot EFI boot loader.
boot = {
kernelModules = [ "v4l2loopback" ];
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
kernelPackages = pkgs.linuxPackages_latest;
extraModulePackages = [
config.boot.kernelPackages.v4l2loopback
];
@ -59,7 +59,7 @@
devmon.enable = true; # automount stuff
upower.enable = true;
fwupd.enable = true; # firmware updates
zfs.autoScrub.enable = true;
btrfs.autoScrub.enable = true;
};
hardware.bluetooth = {
enable = true;

View file

@ -35,29 +35,37 @@
};
fileSystems."/nix" =
{
device = "rpool/nixos/nix";
fsType = "zfs";
# fileSystems."/" =
# { device = "/dev/disk/by-uuid/43e42607-bc44-45de-a2c1-a09a4e34daf1";
# fsType = "btrfs";
# options = [ "subvol=root" ];
# };
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/43e42607-bc44-45de-a2c1-a09a4e34daf1";
fsType = "btrfs";
options = [ "subvol=home" "compress=zstd" ];
};
fileSystems."/var/lib" =
{
device = "rpool/nixos/var/lib";
fsType = "zfs";
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/43e42607-bc44-45de-a2c1-a09a4e34daf1";
fsType = "btrfs";
options = [ "subvol=nix" "compress=zstd" "noatime"];
};
fileSystems."/var/log" =
{
device = "rpool/nixos/var/log";
fsType = "zfs";
{ device = "/dev/disk/by-uuid/43e42607-bc44-45de-a2c1-a09a4e34daf1";
fsType = "btrfs";
options = [ "subvol=log" "compress=zstd" ];
};
fileSystems."/home" =
{
device = "rpool/nixos/home";
fsType = "zfs";
fileSystems."/var/lib" =
{ device = "/dev/disk/by-uuid/43e42607-bc44-45de-a2c1-a09a4e34daf1";
fsType = "btrfs";
options = [ "subvol=lib" "compress=zstd" ];
};
fileSystems."/" =
{
device = "tmpfs";
@ -67,7 +75,7 @@
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/DF86-7611";
device = "/dev/disk/by-uuid/12CE-A600";
fsType = "vfat";
};

View file

@ -35,13 +35,13 @@
# This setting is usually set to true in configuration.nix
# generated at installation time. So we force it to false
# for now.
loader.systemd-boot.enable = lib.mkForce false;
lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
configurationLimit = 10;
};
loader.systemd-boot.editor = false;
loader.efi.canTouchEfiVariables = true;
loader.systemd-boot.enable = lib.mkForce true;
# lanzaboote = {
# enable = true;
# pkiBundle = "/etc/secureboot";
# configurationLimit = 10;
# };
# loader.systemd-boot.editor = false;
# loader.efi.canTouchEfiVariables = true;
};
}