trying to fix git
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
{ pkgs, config, lokiPort ? 3100, ... }:
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
config.services.loki.configuration.server.http_listen_port
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
(pkgs.writeShellScriptBin "loki-check" "curl http://localhost:${builtins.toString lokiPort}/ready")
|
||||
(pkgs.writeShellScriptBin "loki-check" ''
|
||||
curl http://localhost:${config.services.loki.configuration.server.http_listen_port}/ready
|
||||
'')
|
||||
(pkgs.writeShellScriptBin "loki-logs" "journalctl -b -u loki.service -n 10")
|
||||
];
|
||||
|
||||
@@ -14,7 +16,7 @@
|
||||
user = "loki";
|
||||
|
||||
configuration = {
|
||||
server.http_listen_port = lokiPort;
|
||||
server.http_listen_port = 3100;
|
||||
# server.grpc_listen_port = 9096;
|
||||
auth_enabled = false;
|
||||
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
{
|
||||
inputs.vscode-server.url = "github:nix-community/nixos-vscode-server";
|
||||
|
||||
outputs = { self, nixpkgs, vscode-server }: {
|
||||
nixosConfigurations.yourhostname = nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
vscode-server.nixosModules.default
|
||||
({ config, pkgs, ... }: {
|
||||
services.vscode-server.enable = true;
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user