Skip to content

Commit c215c98

Browse files
committed
nixos: pi4b manually enable systemd accounting
1 parent 2c7ca59 commit c215c98

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

nixos/hosts/pi4b/configuration.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@
2929
}
3030
];
3131

32+
systemd.extraConfig = ''
33+
DefaultCPUAccounting=yes
34+
DefaultIOAccounting=yes
35+
DefaultBlockIOAccounting=yes
36+
DefaultMemoryAccounting=yes
37+
DefaultTasksAccounting=yes
38+
'';
39+
3240
nixpkgs.overlays = [
3341
# deadnix: skip
3442
(final: super: {

nixos/hosts/pi4b/hardware-configuration.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"cgroup_enable=cpuset"
2020
"cgroup_enable=memory"
2121
"cgroup_memory=1"
22+
"swapaccount=1"
2223
];
2324

2425
fileSystems."/" = {

0 commit comments

Comments
 (0)