Skip to content

Commit

Permalink
Add NAS settings
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Oct 5, 2024
1 parent 1ca1643 commit bff3b41
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
17 changes: 17 additions & 0 deletions modules/nixos/services/nas/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
config,
lib,
...
}: {
imports = [
./drives.nix
];

options = {
nas.enable = lib.mkEnableOption "NAS utilities and config";
};

config = lib.mkIf config.nas.enable {
drives.enable = lib.mkDefault true;
};
}
16 changes: 16 additions & 0 deletions modules/nixos/services/nas/drives.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}: {
options = {
drives.enable = lib.mkEnableOption "Utilities for managing drives";
};

config = lib.mkIf config.drives.enable {
environment.systemPackages = with pkgs; [
smartmontools
];
};
}

0 comments on commit bff3b41

Please sign in to comment.