From 48908e5b8634ba1e98309ae44d037135f1dfe03e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Wed, 2 Oct 2024 20:24:13 +0200 Subject: [PATCH] nixos: improve systemd slice names Following https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#Description=, update slice names to be short, descriptive and capitalized. --- nixos/modules/security/isolate.nix | 2 +- nixos/modules/services/backup/bacula.nix | 2 +- nixos/modules/services/continuous-integration/hydra/default.nix | 2 +- nixos/modules/services/misc/paperless.nix | 2 +- nixos/modules/services/monitoring/rustdesk-server.nix | 2 +- nixos/modules/services/network-filesystems/samba.nix | 2 +- nixos/modules/services/security/clamav.nix | 2 +- nixos/modules/services/web-servers/phpfpm/default.nix | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/nixos/modules/security/isolate.nix b/nixos/modules/security/isolate.nix index 3cc0176f3db3..11a6af588b5b 100644 --- a/nixos/modules/security/isolate.nix +++ b/nixos/modules/security/isolate.nix @@ -125,7 +125,7 @@ in }; systemd.slices.isolate = { - description = "Isolate sandbox slice"; + description = "Isolate Sandbox Slice"; }; meta.maintainers = with maintainers; [ virchau13 ]; diff --git a/nixos/modules/services/backup/bacula.nix b/nixos/modules/services/backup/bacula.nix index f7a86915d5bc..0851b5b0bf14 100644 --- a/nixos/modules/services/backup/bacula.nix +++ b/nixos/modules/services/backup/bacula.nix @@ -657,7 +657,7 @@ in { config = mkIf (fd_cfg.enable || sd_cfg.enable || dir_cfg.enable) { systemd.slices.system-bacula = { - description = "Bacula Slice"; + description = "Bacula Backup System Slice"; documentation = [ "man:bacula(8)" "https://www.bacula.org/" ]; }; diff --git a/nixos/modules/services/continuous-integration/hydra/default.nix b/nixos/modules/services/continuous-integration/hydra/default.nix index a8a8973f25ba..189aaf86dd2d 100644 --- a/nixos/modules/services/continuous-integration/hydra/default.nix +++ b/nixos/modules/services/continuous-integration/hydra/default.nix @@ -311,7 +311,7 @@ in ]; systemd.slices.system-hydra = { - description = "Hydra Slice"; + description = "Hydra CI Server Slice"; documentation = [ "file://${cfg.package}/share/doc/hydra/index.html" "https://nixos.org/hydra/manual/" ]; }; diff --git a/nixos/modules/services/misc/paperless.nix b/nixos/modules/services/misc/paperless.nix index e45dded3683d..73f09d804f29 100644 --- a/nixos/modules/services/misc/paperless.nix +++ b/nixos/modules/services/misc/paperless.nix @@ -234,7 +234,7 @@ in services.redis.servers.paperless.enable = mkIf enableRedis true; systemd.slices.system-paperless = { - description = "Paperless slice"; + description = "Paperless Document Management System Slice"; documentation = [ "https://docs.paperless-ngx.com" ]; }; diff --git a/nixos/modules/services/monitoring/rustdesk-server.nix b/nixos/modules/services/monitoring/rustdesk-server.nix index ea4dd43cbb35..e757d8fdf054 100644 --- a/nixos/modules/services/monitoring/rustdesk-server.nix +++ b/nixos/modules/services/monitoring/rustdesk-server.nix @@ -86,7 +86,7 @@ in { systemd.slices.system-rustdesk = { enable = true; - description = "Slice designed to contain RustDesk Signal & RustDesk Relay"; + description = "RustDesk Remote Desktop Slice"; }; systemd.targets.rustdesk = { diff --git a/nixos/modules/services/network-filesystems/samba.nix b/nixos/modules/services/network-filesystems/samba.nix index 8df25e6373ca..e661d3ff33bf 100644 --- a/nixos/modules/services/network-filesystems/samba.nix +++ b/nixos/modules/services/network-filesystems/samba.nix @@ -179,7 +179,7 @@ in systemd = { slices.system-samba = { - description = "Samba slice"; + description = "Samba (SMB Networking Protocol) Slice"; }; targets.samba = { description = "Samba Server"; diff --git a/nixos/modules/services/security/clamav.nix b/nixos/modules/services/security/clamav.nix index 90b69df2d4a3..2b0929599723 100644 --- a/nixos/modules/services/security/clamav.nix +++ b/nixos/modules/services/security/clamav.nix @@ -165,7 +165,7 @@ in environment.etc."clamav/clamd.conf".source = clamdConfigFile; systemd.slices.system-clamav = { - description = "ClamAV slice"; + description = "ClamAV Antivirus Slice"; }; systemd.services.clamav-daemon = mkIf cfg.daemon.enable { diff --git a/nixos/modules/services/web-servers/phpfpm/default.nix b/nixos/modules/services/web-servers/phpfpm/default.nix index 183e25cde15e..2312fab2702b 100644 --- a/nixos/modules/services/web-servers/phpfpm/default.nix +++ b/nixos/modules/services/web-servers/phpfpm/default.nix @@ -240,7 +240,7 @@ in { }; systemd.slices.system-phpfpm = { - description = "PHP FastCGI Process manager pools slice"; + description = "PHP FastCGI Process Manager Slice"; }; systemd.targets.phpfpm = {