NixOS Configuration We start by including the NixOS module in our NixOS configuration and enabling the service: FlakeNon-Flake flake.nix 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29{ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; data-mesher = { url = "git+https://git.clan.lol/clan/data-mesher?shallow=1&ref=main"; inputs.nixpkgs.follows = "nixpkgs"; }; }; output = inputs@{ nixpkgs, ... }: let inherit (nixpkgs) lib; in { nixosConfigurations.basic = lib.nixosSystem { modules = [ inputs.data-mesher.nixosModules.data-mesher # (2) { config.services.data-mesher = { enable = true; # elided for brevity }; } ]; }; }; } configuration.nix 1 2 3 4 5 6 7 8 9 10 11 12 13 14{ imports = [ # Import module "${ (builtins.fetchTarball { url = "https://git.clan.lol/clan/data-mesher/archive/main.tar.gz"; }) }/modules/nixos/data-mesher.nix" ]; # Configure the service config.services.data-mesher = { enable = true; # elided for brevity }; }