diff options
author | Karel Kočí <cynerd@email.cz> | 2025-08-19 11:01:53 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2025-08-19 12:11:35 +0200 |
commit | cb720d62b0915af217851a5a9396b930586f898a (patch) | |
tree | 30448de7250b0c259ed603062e61e775f334d566 /nixos/configurations/spt-mox2.nix | |
parent | 51d10fa6886f8dc3a35e0982189ef5a5b319d6fe (diff) | |
download | nixos-personal-cb720d62b0915af217851a5a9396b930586f898a.tar.gz nixos-personal-cb720d62b0915af217851a5a9396b930586f898a.tar.bz2 nixos-personal-cb720d62b0915af217851a5a9396b930586f898a.zip |
Ensure that dm-mod is available and autoscrub BTRFS and limit journald
size.
Diffstat (limited to 'nixos/configurations/spt-mox2.nix')
-rw-r--r-- | nixos/configurations/spt-mox2.nix | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/nixos/configurations/spt-mox2.nix b/nixos/configurations/spt-mox2.nix index fd2c074..2e76449 100644 --- a/nixos/configurations/spt-mox2.nix +++ b/nixos/configurations/spt-mox2.nix @@ -23,13 +23,17 @@ }; }; - services.journald.extraConfig = '' - SystemMaxUse=512M - ''; + boot.initrd.availableKernelModules = ["dm-mod"]; - services.btrfs.autoScrub = { - enable = true; - fileSystems = ["/"]; + services = { + journald.extraConfig = '' + SystemMaxUse=512M + ''; + + btrfs.autoScrub = { + enable = true; + fileSystems = ["/"]; + }; }; networking = { |