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; services.virtbox.enable = true;
}; };
test = lib.mkIf isNetbox { test_ = lib.mkIf isNetbox {
services.netbox.enable = true; services.netbox.enable = true;
}; };
} }

View File

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

View File

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

View File

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