mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +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";
|
||||
|
||||
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;
|
||||
|
@ -8,7 +8,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.bookServer != null {
|
||||
config = lib.mkIf (config.bookServer != null) {
|
||||
|
||||
services.calibre-web = {
|
||||
enable = true;
|
||||
|
@ -14,7 +14,7 @@ in {
|
||||
|
||||
};
|
||||
|
||||
config = lib.mkIf config.giteaServer != null {
|
||||
config = lib.mkIf (config.giteaServer != null) {
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
httpPort = 3001;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -8,7 +8,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.streamServer != null {
|
||||
config = lib.mkIf (config.streamServer != null) {
|
||||
|
||||
services.jellyfin.enable = true;
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.n8nServer != null {
|
||||
config = lib.mkIf (config.n8nServer != null) {
|
||||
|
||||
services.n8n = {
|
||||
enable = true;
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
};
|
||||
|
||||
config = lib.mkIf config.nextcloudServer != null {
|
||||
config = lib.mkIf (config.nextcloudServer != null) {
|
||||
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
|
@ -6,7 +6,7 @@
|
||||
default = null;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.metricsServer != null {
|
||||
config = lib.mkIf (config.metricsServer != null) {
|
||||
|
||||
services.grafana.enable = true;
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
||||
};
|
||||
|
||||
# Create reverse proxy for web UI
|
||||
caddyRoutes = [{
|
||||
caddy.routes = [{
|
||||
match = [{ host = [ config.transmissionServer ]; }];
|
||||
handle = [{
|
||||
handler = "reverse_proxy";
|
||||
|
@ -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";
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user