toggle tests, homelab.<> -> modules.homelab.<>
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user