diff options
author | Paul Schyska <paul@schyska.net> | 2021-05-16 18:19:27 +0200 |
---|---|---|
committer | Paul Schyska <paul@schyska.net> | 2021-05-16 18:22:03 +0200 |
commit | b87c36604642669d05381f06ac94af1b21f1ce30 (patch) | |
tree | bf01461e7e521aabfdc18c92b7cfe6e9b28389bb /nixos/modules/programs/atop.nix | |
parent | 8f3d2e5c3b10ca459a71a59176be9be16d75276f (diff) |
nixos/atop: Never enable setuidWrapper by default, rename service/timer enabling options
Diffstat (limited to 'nixos/modules/programs/atop.nix')
-rw-r--r-- | nixos/modules/programs/atop.nix | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/nixos/modules/programs/atop.nix b/nixos/modules/programs/atop.nix index d1577b32adfb0..3e69e882eaece 100644 --- a/nixos/modules/programs/atop.nix +++ b/nixos/modules/programs/atop.nix @@ -52,7 +52,7 @@ in setuidWrapper.enable = mkOption { type = types.bool; - default = cfg.netatop.enable || cfg.atopgpu.enable; + default = false; description = '' Whether to install a setuid wrapper for Atop. This is required to use some of the features as non-root user (e.g.: ipc information, netatop, atopgpu). @@ -60,7 +60,7 @@ in ''; }; - atopsvc.enable = mkOption { + atopService.enable = mkOption { type = types.bool; default = true; description = '' @@ -68,7 +68,7 @@ in long-term analysis. ''; }; - atopRotate.enable = mkOption { + atopRotateTimer.enable = mkOption { type = types.bool; default = true; description = '' @@ -76,7 +76,7 @@ in daily to make sure the data files are rotate. ''; }; - atopacct.enable = mkOption { + atopacctService.enable = mkOption { type = types.bool; default = true; description = '' @@ -133,11 +133,11 @@ in { inherit packages; services = - mkService cfg.atopsvc.enable "atop" - // mkService cfg.atopacct.enable "atopacct" + mkService cfg.atopService.enable "atop" + // mkService cfg.atopacctService.enable "atopacct" // mkService cfg.netatop.enable "netatop" // mkService cfg.atopgpu.enable "atopgpu"; - timers = mkTimer cfg.atopRotate.enable "atop-rotate"; + timers = mkTimer cfg.atopRotateTimer.enable "atop-rotate"; }; security.wrappers = lib.mkIf cfg.setuidWrapper.enable { atop = { source = "${atop}/bin/atop"; }; }; |