diff --git a/flake.lock b/flake.lock index 3c6c747..2009a85 100644 --- a/flake.lock +++ b/flake.lock @@ -20,6 +20,26 @@ "type": "github" } }, + "caddy": { + "inputs": { + "flake-utils": "flake-utils_2", + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1726309763, + "narHash": "sha256-T6Y7JExFYfSlHbhdEMWbQXB4TcWmmNlmqsXMMFKH20Q=", + "owner": "adtya", + "repo": "caddy-with-modules", + "rev": "f3179ef9be7df731b1dc133e2e57451d0713050b", + "type": "github" + }, + "original": { + "owner": "adtya", + "ref": "main", + "repo": "caddy-with-modules", + "type": "github" + } + }, "crane": { "inputs": { "nixpkgs": [ @@ -44,7 +64,7 @@ "deploy-rs": { "inputs": { "flake-compat": "flake-compat", - "nixpkgs": "nixpkgs_2", + "nixpkgs": "nixpkgs_3", "utils": "utils" }, "locked": { @@ -209,7 +229,7 @@ }, "flake-utils_2": { "inputs": { - "systems": "systems_3" + "systems": "systems_2" }, "locked": { "lastModified": 1710146030, @@ -245,6 +265,25 @@ "type": "github" } }, + "flake-utils_4": { + "inputs": { + "systems": "systems_5" + }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "ref": "main", + "repo": "flake-utils", + "type": "github" + } + }, "git-hooks": { "inputs": { "flake-compat": "flake-compat_4", @@ -380,7 +419,7 @@ "crane": "crane", "flake-compat": "flake-compat_2", "flake-parts": "flake-parts", - "nixpkgs": "nixpkgs_3", + "nixpkgs": "nixpkgs_4", "pre-commit-hooks-nix": "pre-commit-hooks-nix", "rust-overlay": "rust-overlay" }, @@ -406,7 +445,7 @@ "git-hooks": "git-hooks", "hercules-ci-effects": "hercules-ci-effects", "neovim-src": "neovim-src", - "nixpkgs": "nixpkgs_4" + "nixpkgs": "nixpkgs_5" }, "locked": { "lastModified": 1726189029, @@ -488,6 +527,22 @@ } }, "nixpkgs_2": { + "locked": { + "lastModified": 1726062873, + "narHash": "sha256-IiA3jfbR7K/B5+9byVi9BZGWTD4VSbWe8VLpp9B/iYk=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "4f807e8940284ad7925ebd0a0993d2a1791acb2f", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { "locked": { "lastModified": 1702272962, "narHash": "sha256-D+zHwkwPc6oYQ4G3A1HuadopqRwUY/JkMwHz1YF7j4Q=", @@ -503,7 +558,7 @@ "type": "github" } }, - "nixpkgs_3": { + "nixpkgs_4": { "locked": { "lastModified": 1722264024, "narHash": "sha256-gomyYQrlOltr2/prDRikRDQoPz+J5Qq6SEJrqVC5x2c=", @@ -519,7 +574,7 @@ "type": "github" } }, - "nixpkgs_4": { + "nixpkgs_5": { "locked": { "lastModified": 1726108120, "narHash": "sha256-Ji5wO1lLG99grI0qCRb6FyRPpH9tfdfD1QP/r7IlgfM=", @@ -535,7 +590,7 @@ "type": "github" } }, - "nixpkgs_5": { + "nixpkgs_6": { "locked": { "lastModified": 1725983898, "narHash": "sha256-4b3A9zPpxAxLnkF9MawJNHDtOOl6ruL0r6Og1TEDGCE=", @@ -551,7 +606,7 @@ "type": "github" } }, - "nixpkgs_6": { + "nixpkgs_7": { "locked": { "lastModified": 1725534445, "narHash": "sha256-Yd0FK9SkWy+ZPuNqUgmVPXokxDgMJoGuNpMEtkfcf84=", @@ -567,7 +622,7 @@ "type": "github" } }, - "nixpkgs_7": { + "nixpkgs_8": { "locked": { "lastModified": 1726108120, "narHash": "sha256-Ji5wO1lLG99grI0qCRb6FyRPpH9tfdfD1QP/r7IlgfM=", @@ -613,13 +668,14 @@ "root": { "inputs": { "adtyaxyz": "adtyaxyz", + "caddy": "caddy", "deploy-rs": "deploy-rs", - "flake-utils": "flake-utils_2", + "flake-utils": "flake-utils_3", "home-manager": "home-manager", "impermanence": "impermanence", "lanzaboote": "lanzaboote", "neovim-nightly": "neovim-nightly", - "nixpkgs": "nixpkgs_5", + "nixpkgs": "nixpkgs_6", "sops-nix": "sops-nix", "wiki": "wiki" } @@ -647,7 +703,7 @@ }, "sops-nix": { "inputs": { - "nixpkgs": "nixpkgs_6", + "nixpkgs": "nixpkgs_7", "nixpkgs-stable": "nixpkgs-stable_2" }, "locked": { @@ -725,9 +781,24 @@ "type": "github" } }, + "systems_5": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "utils": { "inputs": { - "systems": "systems_2" + "systems": "systems_3" }, "locked": { "lastModified": 1701680307, @@ -745,8 +816,8 @@ }, "wiki": { "inputs": { - "flake-utils": "flake-utils_3", - "nixpkgs": "nixpkgs_7" + "flake-utils": "flake-utils_4", + "nixpkgs": "nixpkgs_8" }, "locked": { "lastModified": 1726188295, diff --git a/flake.nix b/flake.nix index d3994e1..d127c11 100644 --- a/flake.nix +++ b/flake.nix @@ -24,6 +24,7 @@ deploy-rs.url = "github:serokell/deploy-rs?ref=master"; flake-utils.url = "github:numtide/flake-utils?ref=main"; neovim-nightly.url = "github:nix-community/neovim-nightly-overlay?ref=master"; + caddy.url = "github:adtya/caddy-with-modules?ref=main"; adtyaxyz.url = "github:adtya/adtya.xyz?ref=main"; wiki.url = "github:adtya/wiki?ref=main"; }; @@ -38,6 +39,7 @@ , deploy-rs , flake-utils , neovim-nightly + , caddy , adtyaxyz , wiki , diff --git a/hosts/shared/caddy.nix b/hosts/shared/caddy.nix index fbc3119..66d7404 100644 --- a/hosts/shared/caddy.nix +++ b/hosts/shared/caddy.nix @@ -1,7 +1,8 @@ -_: { +{ inputs, pkgs, ... }: { services.caddy = { enable = true; acmeCA = "https://acme-v02.api.letsencrypt.org/directory"; + package = inputs.caddy.packages.${pkgs.system}.caddy; email = "admin@acomputer.lol"; }; networking.firewall.allowedTCPPorts = [ 80 443 ];