{ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; outputs = { self, nixpkgs }: { nixosConfigurations.container = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ ( import ./sharkey-service.nix ) ({ pkgs, ... }: { boot.isContainer = true; # Let 'nixos-version --json' know about the Git revision # of this flake. system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; # Network configuration. networking.useDHCP = false; networking.firewall.allowedTCPPorts = [ 3000 ]; system.stateVersion = "24.04"; services.sharkey = { enable = true; package = (pkgs.callPackage ./sharkey.nix {}); settings = { url = "https://sharkey.localhost"; }; redis.createLocally = true; database.createLocally = true; }; }) ]; }; }; }