mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
spin-down: improved systemd service descriptions
This commit is contained in:
parent
1e5701956e
commit
dba9b61952
@ -19,7 +19,7 @@ in
|
|||||||
|
|
||||||
config = mkIf (length cfg > 0) {
|
config = mkIf (length cfg > 0) {
|
||||||
systemd.services."hd-idle" = {
|
systemd.services."hd-idle" = {
|
||||||
description = "Spin down inactive HDDs";
|
description = "Spin down inactive HDDs with hd-idle";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
script =
|
script =
|
||||||
let
|
let
|
||||||
|
@ -89,7 +89,7 @@ in
|
|||||||
systemd.services = builtins.listToAttrs (builtins.map (id: {
|
systemd.services = builtins.listToAttrs (builtins.map (id: {
|
||||||
name = "hdparm-${id}";
|
name = "hdparm-${id}";
|
||||||
value = {
|
value = {
|
||||||
description = "Spin down inactive HDD";
|
description = "Spin down inactive HDD ${id}";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
script = ''
|
script = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user