auto-fsck
This commit is contained in:
parent
b553a7e43e
commit
6c9a183d93
9 changed files with 11 additions and 2 deletions
4
hive.nix
4
hive.nix
|
@ -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 ];
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
type = "filesystem";
|
||||
format = "bcachefs";
|
||||
mountpoint = "/";
|
||||
mountOptions = [ "fsck" "fix_errors" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
fileSystems."/" = {
|
||||
device = "UUID=2d6f7d3a-936d-457c-86c7-f49d816ff5b7";
|
||||
fsType = "bcachefs";
|
||||
options = [ "fsck" "fix_errors" ];
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
|
|
|
@ -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" = {
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
type = "filesystem";
|
||||
format = "bcachefs";
|
||||
mountpoint = "/";
|
||||
mountOptions = [ "fsck" "fix_errors" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
type = "filesystem";
|
||||
format = "bcachefs";
|
||||
mountpoint = "/";
|
||||
mountOptions = [ "fsck" "fix_errors" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
fileSystems."/" = {
|
||||
device = "UUID=301a23cf-1aa3-4c53-a174-1a97592da5fa";
|
||||
fsType = "bcachefs";
|
||||
options = [ "fsck" "fix_errors" ];
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
format = "bcachefs";
|
||||
mountpoint = "/";
|
||||
extraArgs = [ "--compression=zstd" ];
|
||||
mountOptions = [ "fsck" "fix_errors" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue