Skip to content

Commit

Permalink
Feat/smartd (#106)
Browse files Browse the repository at this point in the history
* Add smartd to odroid1

* Add smartmontools package

* Add examples

* Add smartmontools to odroid2
  • Loading branch information
iancleary authored Nov 7, 2024
1 parent 499bde1 commit df874ad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions nixos/odroid1/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,23 @@
]
)
)
smartmontools
];

# sudo smartctl -ax /dev/sda
# sudo smartctl -ax /dev/sdb
services.smartd = {
enable = true;
devices = [
# use lsblk to find the appropriate value
{
device = "/dev/sda";
}
{
device = "/dev/sdb";
}
];
};

# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
Expand Down
1 change: 1 addition & 0 deletions nixos/odroid2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
]
)
)
smartmontools
];


Expand Down

0 comments on commit df874ad

Please sign in to comment.