auto-fsck

This commit is contained in:
catvayor 2024-07-29 14:39:16 +02:00
parent b553a7e43e
commit 6c9a183d93
Signed by: lbailly
GPG key ID: CE3E645251AC63F3
9 changed files with 11 additions and 2 deletions

View file

@ -50,6 +50,10 @@ in
settings.nix-path = config.nix.nixPath;
package = pkgs.lix;
};
services.openssh.settings = {
ClientAliveInterval = 60;
ClientAliveCountMax = 1;
};
system.build.anywhere = pkgs.writeShellApplication {
name = "anywhere-deploy_${name}.sh";
runtimeInputs = [ pkgs.nixos-anywhere ];

View file

@ -22,6 +22,7 @@
type = "filesystem";
format = "bcachefs";
mountpoint = "/";
mountOptions = [ "fsck" "fix_errors" ];
};
};
};

View file

@ -26,6 +26,7 @@
fileSystems."/" = {
device = "UUID=2d6f7d3a-936d-457c-86c7-f49d816ff5b7";
fsType = "bcachefs";
options = [ "fsck" "fix_errors" ];
};
fileSystems."/boot" = {

View file

@ -27,6 +27,7 @@
fileSystems."/" = {
device = "/dev/disk/by-uuid/4c1f76c6-5ce6-4987-b15e-9419627b7f19";
fsType = "bcachefs";
options = [ "fsck" "fix_errors" ];
};
boot.initrd.luks.devices."dec-lin" = {

View file

@ -22,6 +22,7 @@
type = "filesystem";
format = "bcachefs";
mountpoint = "/";
mountOptions = [ "fsck" "fix_errors" ];
};
};
};

View file

@ -22,6 +22,7 @@
type = "filesystem";
format = "bcachefs";
mountpoint = "/";
mountOptions = [ "fsck" "fix_errors" ];
};
};
};

View file

@ -1,5 +1,3 @@
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{
config,
lib,

View file

@ -26,6 +26,7 @@
fileSystems."/" = {
device = "UUID=301a23cf-1aa3-4c53-a174-1a97592da5fa";
fsType = "bcachefs";
options = [ "fsck" "fix_errors" ];
};
fileSystems."/boot" = {

View file

@ -28,6 +28,7 @@
format = "bcachefs";
mountpoint = "/";
extraArgs = [ "--compression=zstd" ];
mountOptions = [ "fsck" "fix_errors" ];
};
};
};