mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-23 01:05:38 +00:00
fixes for module layout
This commit is contained in:
parent
d040077d3a
commit
7063bd5f7a
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
options.tmux.enable = lib.mkEnableOption "Tmux terminal multiplexer";
|
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 = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.bookServer != null {
|
config = lib.mkIf (config.bookServer != null) {
|
||||||
|
|
||||||
services.calibre-web = {
|
services.calibre-web = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -14,7 +14,7 @@ in {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.giteaServer != null {
|
config = lib.mkIf (config.giteaServer != null) {
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
httpPort = 3001;
|
httpPort = 3001;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
options.gpg.enable = lib.mkEnableOption "GnuPG encryption.";
|
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;
|
programs.gpg.enable = true;
|
||||||
services.gpg-agent = {
|
services.gpg-agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -40,7 +40,7 @@ in {
|
|||||||
|
|
||||||
options.honeypot.enable = lib.mkEnableOption "Honeypot fail2ban system.";
|
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 ];
|
extraPackages = [ pkgs.ipset ];
|
||||||
# allowedTCPPorts = portsToBlock;
|
# allowedTCPPorts = portsToBlock;
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.streamServer != null {
|
config = lib.mkIf (config.streamServer != null) {
|
||||||
|
|
||||||
services.jellyfin.enable = true;
|
services.jellyfin.enable = true;
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.n8nServer != null {
|
config = lib.mkIf (config.n8nServer != null) {
|
||||||
|
|
||||||
services.n8n = {
|
services.n8n = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.nextcloudServer != null {
|
config = lib.mkIf (config.nextcloudServer != null) {
|
||||||
|
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.metricsServer != null {
|
config = lib.mkIf (config.metricsServer != null) {
|
||||||
|
|
||||||
services.grafana.enable = true;
|
services.grafana.enable = true;
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Create reverse proxy for web UI
|
# Create reverse proxy for web UI
|
||||||
caddyRoutes = [{
|
caddy.routes = [{
|
||||||
match = [{ host = [ config.transmissionServer ]; }];
|
match = [{ host = [ config.transmissionServer ]; }];
|
||||||
handle = [{
|
handle = [{
|
||||||
handler = "reverse_proxy";
|
handler = "reverse_proxy";
|
||||||
|
@ -14,7 +14,7 @@ in {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.vaultwardenServer != null {
|
config = lib.mkIf (config.vaultwardenServer != null) {
|
||||||
services.vaultwarden = {
|
services.vaultwarden = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
@ -46,7 +46,7 @@ in {
|
|||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 3012 ];
|
networking.firewall.allowedTCPPorts = [ 3012 ];
|
||||||
|
|
||||||
caddyRoutes = [{
|
caddy.routes = [{
|
||||||
match = [{ host = [ config.vaultwardenServer ]; }];
|
match = [{ host = [ config.vaultwardenServer ]; }];
|
||||||
handle = [{
|
handle = [{
|
||||||
handler = "reverse_proxy";
|
handler = "reverse_proxy";
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
options.charm.enable = lib.mkEnableOption "Charm utilities.";
|
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; [
|
home.packages = with pkgs; [
|
||||||
glow # Markdown previews
|
glow # Markdown previews
|
||||||
|
Loading…
Reference in New Issue
Block a user