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; settings.nix-path = config.nix.nixPath;
package = pkgs.lix; package = pkgs.lix;
}; };
services.openssh.settings = {
ClientAliveInterval = 60;
ClientAliveCountMax = 1;
};
system.build.anywhere = pkgs.writeShellApplication { system.build.anywhere = pkgs.writeShellApplication {
name = "anywhere-deploy_${name}.sh"; name = "anywhere-deploy_${name}.sh";
runtimeInputs = [ pkgs.nixos-anywhere ]; runtimeInputs = [ pkgs.nixos-anywhere ];

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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