fixes for module layout

This commit is contained in:
Noah Masur 2022-12-21 14:38:34 -07:00
parent d040077d3a
commit 7063bd5f7a
12 changed files with 13 additions and 13 deletions

View File

@ -2,7 +2,7 @@
options.tmux.enable = lib.mkEnableOption "Tmux terminal multiplexer";
home-manager.users.${config.user} = lib.mkIf config.tmux.enable {
config.home-manager.users.${config.user} = lib.mkIf config.tmux.enable {
programs.tmux = {
enable = true;

View File

@ -8,7 +8,7 @@
};
};
config = lib.mkIf config.bookServer != null {
config = lib.mkIf (config.bookServer != null) {
services.calibre-web = {
enable = true;

View File

@ -14,7 +14,7 @@ in {
};
config = lib.mkIf config.giteaServer != null {
config = lib.mkIf (config.giteaServer != null) {
services.gitea = {
enable = true;
httpPort = 3001;

View File

@ -2,7 +2,7 @@
options.gpg.enable = lib.mkEnableOption "GnuPG encryption.";
home-manager.users.${config.user} = lib.mkIf config.gpg.enable {
config.home-manager.users.${config.user} = lib.mkIf config.gpg.enable {
programs.gpg.enable = true;
services.gpg-agent = {
enable = true;

View File

@ -40,7 +40,7 @@ in {
options.honeypot.enable = lib.mkEnableOption "Honeypot fail2ban system.";
networking.firewall = lib.mkIf config.honeypot.enable {
config.networking.firewall = lib.mkIf config.honeypot.enable {
extraPackages = [ pkgs.ipset ];
# allowedTCPPorts = portsToBlock;

View File

@ -8,7 +8,7 @@
};
};
config = lib.mkIf config.streamServer != null {
config = lib.mkIf (config.streamServer != null) {
services.jellyfin.enable = true;

View File

@ -8,7 +8,7 @@
};
};
config = lib.mkIf config.n8nServer != null {
config = lib.mkIf (config.n8nServer != null) {
services.n8n = {
enable = true;

View File

@ -10,7 +10,7 @@
};
config = lib.mkIf config.nextcloudServer != null {
config = lib.mkIf (config.nextcloudServer != null) {
services.nextcloud = {
enable = true;

View File

@ -6,7 +6,7 @@
default = null;
};
config = lib.mkIf config.metricsServer != null {
config = lib.mkIf (config.metricsServer != null) {
services.grafana.enable = true;

View File

@ -41,7 +41,7 @@
};
# Create reverse proxy for web UI
caddyRoutes = [{
caddy.routes = [{
match = [{ host = [ config.transmissionServer ]; }];
handle = [{
handler = "reverse_proxy";

View File

@ -14,7 +14,7 @@ in {
};
config = lib.mkIf config.vaultwardenServer != null {
config = lib.mkIf (config.vaultwardenServer != null) {
services.vaultwarden = {
enable = true;
config = {
@ -46,7 +46,7 @@ in {
networking.firewall.allowedTCPPorts = [ 3012 ];
caddyRoutes = [{
caddy.routes = [{
match = [{ host = [ config.vaultwardenServer ]; }];
handle = [{
handler = "reverse_proxy";

View File

@ -2,7 +2,7 @@
options.charm.enable = lib.mkEnableOption "Charm utilities.";
home-manager.users.${config.user} = lib.mkIf config.charm.enable {
config.home-manager.users.${config.user} = lib.mkIf config.charm.enable {
home.packages = with pkgs; [
glow # Markdown previews