push changes

This commit is contained in:
randomuser 2023-07-08 14:22:13 -05:00
parent 1da95b53c1
commit a17c8f44d4
4 changed files with 8 additions and 10 deletions

View File

@ -41,7 +41,7 @@ in
services.virtbox.enable = true;
};
test = lib.mkIf isNetbox {
test_ = lib.mkIf isNetbox {
services.netbox.enable = true;
};
}

View File

@ -1,10 +1,10 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
let
release = "nixos-23.05";
cfg = config.services.nixosmail;
in {
options.services.nixosmail = {
enable = mkEnableOption "NixOS mail server";
enable = lib.mkEnableOption "NixOS mail server";
};
imports = [
@ -15,7 +15,7 @@ in {
})
];
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
mailserver = {
enable = true;
fqdn = "mail.beepboop.systems";

View File

@ -1,11 +1,10 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.services.netbox;
in {
options.serviecs.netbox = {
enable = mkEnableOption "netbox configs";
enable = lib.mkEnableOption "netbox configs";
};
imports =
@ -13,7 +12,7 @@ in {
./mail.nix
];
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda";

View File

@ -1,6 +1,5 @@
{ lib, config, pkgs, ...}:
with lib;
let
cfg = config.services.virtbox;
home-manager = builtins.fetchTarball {
@ -9,14 +8,14 @@ let
};
in {
options.serviecs.virtbox = {
enable = mkEnableOption "virtbox configs";
enable = lib.mkEnableOption "virtbox configs";
};
imports = [
(import "${home-manager}/nixos")
];
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda";