toggle tests, homelab.<> -> modules.homelab.<>

This commit is contained in:
2025-10-04 11:32:15 -05:00
parent 887e7c2b97
commit 464ecdc6ca
5 changed files with 14 additions and 10 deletions

View File

@@ -15,7 +15,11 @@
# ../../modules/homelab/nfs.nix # ../../modules/homelab/nfs.nix
]; ];
modules.homelab = {
zfs.enable = true;
smb.enable = false;
nfs.enable = true;
};
# use the systemd-boot EFI boot loader. # use the systemd-boot EFI boot loader.

View File

@@ -7,8 +7,8 @@
./nfs.nix ./nfs.nix
]; ];
homelab.zfs.enable = lib.mkDefault true; modules.homelab.zfs.enable = lib.mkDefault true;
homelab.smb.enable = lib.mkDefault true; modules.homelab.smb.enable = lib.mkDefault true;
homelab.nfs.enable = lib.mkDefault true; modules.homelab.nfs.enable = lib.mkDefault true;
} }

View File

@@ -9,10 +9,10 @@ let
in in
{ {
options = { options = {
homelab.nfs.enable = lib.mkEnableOption "enables nfs"; modules.homelab.nfs.enable = lib.mkEnableOption "enables nfs";
}; };
config = lib.mkIf config.homelab.nfs.enable { config = lib.mkIf config.modules.homelab.nfs.enable {
# enable nfs with all exports # enable nfs with all exports
services.nfs = { services.nfs = {
server = { server = {

View File

@@ -19,10 +19,10 @@ let
in in
{ {
options = { options = {
homelab.smb.enable = lib.mkEnableOption "enables smb"; modules.homelab.smb.enable = lib.mkEnableOption "enables smb";
}; };
config = lib.mkIf config.homelab.smb.enable { config = lib.mkIf config.modules.homelab.smb.enable {
# enable smb with all shares # enable smb with all shares
services.samba = { services.samba = {
enable = true; enable = true;

View File

@@ -3,10 +3,10 @@
{ {
options = { options = {
homelab.zfs.enable = lib.mkEnableOption "enables zfs"; modules.homelab.zfs.enable = lib.mkEnableOption "enables zfs";
}; };
config = lib.mkIf config.homelab.zfs.enable { config = lib.mkIf config.modules.homelab.zfs.enable {
# set network host id # set network host id
networking.hostId = "3e6e7055"; networking.hostId = "3e6e7055";