/ nix-dokploy / flake.nix
flake.nix
1 { 2 description = "A NixOS module that runs Dokploy (a self-hosted PaaS) using declarative systemd units"; 3 4 inputs = { 5 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 6 flake-utils.url = "github:numtide/flake-utils"; 7 }; 8 9 outputs = { 10 self, 11 nixpkgs, 12 flake-utils, 13 }: 14 { 15 nixosModules = { 16 default = import ./nix-dokploy.nix; 17 dokploy = import ./nix-dokploy.nix; 18 }; 19 20 # For backwards compatibility 21 nixosModule = self.nixosModules.default; 22 } 23 // flake-utils.lib.eachDefaultSystem ( 24 system: let 25 pkgs = nixpkgs.legacyPackages.${system}; 26 in { 27 devShells.default = pkgs.mkShell { 28 packages = with pkgs; [ 29 statix 30 deadnix 31 alejandra 32 ]; 33 }; 34 formatter = pkgs.alejandra; 35 } 36 ); 37 }