Skip to content

Commit

Permalink
nixos/snapraid: remove from top-level
Browse files Browse the repository at this point in the history
I don't use this tool but saw it in the top level and that's not where it should
live.

This could arguably also be seen as a RAID; it's a bit of an in-between.
  • Loading branch information
Atemu committed Dec 6, 2023
1 parent 91050ea commit f39eb36
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nixos/doc/manual/release-notes/rl-2111.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ In addition to numerous new and upgraded packages, this release has the followin
- [opensnitch](https://github.com/evilsocket/opensnitch), an application firewall. Available as [services.opensnitch](#opt-services.opensnitch.enable).

- [snapraid](https://www.snapraid.it/), a backup program for disk arrays.
Available as [snapraid](#opt-snapraid.enable).
Available as [snapraid](#opt-services.snapraid.enable).

- [Hockeypuck](https://github.com/hockeypuck/hockeypuck), a OpenPGP Key Server. Available as [services.hockeypuck](#opt-services.hockeypuck.enable).

Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@
./services/backup/mysql-backup.nix
./services/backup/postgresql-backup.nix
./services/backup/postgresql-wal-receiver.nix
./services/backup/snapraid.nix
./services/backup/restic-rest-server.nix
./services/backup/restic.nix
./services/backup/rsnapshot.nix
Expand Down Expand Up @@ -1501,7 +1502,6 @@
./tasks/network-interfaces.nix
./tasks/powertop.nix
./tasks/scsi-link-power-management.nix
./tasks/snapraid.nix
./tasks/stratis.nix
./tasks/swraid.nix
./tasks/trackpoint.nix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@

with lib;

let cfg = config.snapraid;
let cfg = config.services.snapraid;
in
{
options.snapraid = with types; {
imports = [
# Should have never been on the top-level.
(mkRenamedOptionModule [ "snapraid" ] [ "services" "snapraid" ])
];

options.services.snapraid = with types; {
enable = mkEnableOption (lib.mdDoc "SnapRAID");
dataDisks = mkOption {
default = { };
Expand Down

0 comments on commit f39eb36

Please sign in to comment.