Merge pull request #270084 from Atemu/nixos/snapraid-top-level
nixos/snapraid: remove from top-level
This commit is contained in:
@@ -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).
|
- [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.
|
- [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).
|
- [Hockeypuck](https://github.com/hockeypuck/hockeypuck), a OpenPGP Key Server. Available as [services.hockeypuck](#opt-services.hockeypuck.enable).
|
||||||
|
|
||||||
|
|||||||
@@ -366,6 +366,7 @@
|
|||||||
./services/backup/mysql-backup.nix
|
./services/backup/mysql-backup.nix
|
||||||
./services/backup/postgresql-backup.nix
|
./services/backup/postgresql-backup.nix
|
||||||
./services/backup/postgresql-wal-receiver.nix
|
./services/backup/postgresql-wal-receiver.nix
|
||||||
|
./services/backup/snapraid.nix
|
||||||
./services/backup/restic-rest-server.nix
|
./services/backup/restic-rest-server.nix
|
||||||
./services/backup/restic.nix
|
./services/backup/restic.nix
|
||||||
./services/backup/rsnapshot.nix
|
./services/backup/rsnapshot.nix
|
||||||
@@ -1509,7 +1510,6 @@
|
|||||||
./tasks/network-interfaces.nix
|
./tasks/network-interfaces.nix
|
||||||
./tasks/powertop.nix
|
./tasks/powertop.nix
|
||||||
./tasks/scsi-link-power-management.nix
|
./tasks/scsi-link-power-management.nix
|
||||||
./tasks/snapraid.nix
|
|
||||||
./tasks/stratis.nix
|
./tasks/stratis.nix
|
||||||
./tasks/swraid.nix
|
./tasks/swraid.nix
|
||||||
./tasks/trackpoint.nix
|
./tasks/trackpoint.nix
|
||||||
|
|||||||
@@ -2,10 +2,15 @@
|
|||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let cfg = config.snapraid;
|
let cfg = config.services.snapraid;
|
||||||
in
|
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");
|
enable = mkEnableOption (lib.mdDoc "SnapRAID");
|
||||||
dataDisks = mkOption {
|
dataDisks = mkOption {
|
||||||
default = { };
|
default = { };
|
||||||
Reference in New Issue
Block a user