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;
|
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 ];
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "bcachefs";
|
format = "bcachefs";
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
|
mountOptions = [ "fsck" "fix_errors" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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" = {
|
||||||
|
|
|
@ -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" = {
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "bcachefs";
|
format = "bcachefs";
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
|
mountOptions = [ "fsck" "fix_errors" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "bcachefs";
|
format = "bcachefs";
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
|
mountOptions = [ "fsck" "fix_errors" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
|
||||||
|
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
|
|
@ -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" = {
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
format = "bcachefs";
|
format = "bcachefs";
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
extraArgs = [ "--compression=zstd" ];
|
extraArgs = [ "--compression=zstd" ];
|
||||||
|
mountOptions = [ "fsck" "fix_errors" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue