fix(nix): clean up

This commit is contained in:
sinanmohd
2025-03-01 16:58:45 +05:30
parent 42e8c66434
commit 3dc8572d09
5 changed files with 15 additions and 12 deletions

View File

@@ -24,7 +24,7 @@
(forUnixSystems (
{ system, pkgs }:
{
workflows = pkgs.callPackage ./nix/workflows { };
workflows = pkgs.callPackage ./nix/workflows { inherit self; };
nocodb = pkgs.callPackage ./nix/package.nix {
version = if self ? shortRev then self.shortRev else self.dirtyShortRev;
};

View File

@@ -2,11 +2,11 @@
writeTextDir,
}:
writeTextDir "etc/valkey.conf" ''
# disable tcp
port 0
bind 127.0.0.1
# disable tcp
port 0
bind 127.0.0.1
# enable unixsocket
unixsocket /run/valkey/valkey.sock
unixsocketperm 777
# enable unixsocket
unixsocket /run/valkey/valkey.sock
unixsocketperm 777
''

View File

@@ -11,7 +11,7 @@ let
inherit (pkgs.stdenv.hostPlatform) system;
defaultEnvs = {
DATABASE_URL="sqlite:///%S/nocodb/sqlite.db";
DATABASE_URL = "sqlite:///%S/nocodb/sqlite.db";
};
in
{

View File

@@ -4,6 +4,7 @@
docker,
nix,
sops,
self,
}:
writeShellApplication {
name = "aiopusher";
@@ -32,7 +33,7 @@ writeShellApplication {
package="packages.$1.docker_aio"
note "updating $image:$2 with $package"
nix build .#packages.x86_64-linux.docker_aio -L
nix build "${self}#packages.x86_64-linux.docker_aio" -L
tag="$(docker image load -i result | tail -n1 | cut -d: -f3)"
id="$(docker image ls --format "{{.ID}}:{{.Tag}}" | grep "$tag" | cut -d: -f1)"

View File

@@ -1,7 +1,9 @@
{
callPackage,
lib,
self,
}:
lib.attrsets.mapAttrs (key: _: callPackage ./${key} { }) (
lib.attrsets.filterAttrs (key: _: key != "default.nix") (builtins.readDir ./.)
)
{
aiopusher = callPackage ./aiopusher { inherit self; };
bumper = callPackage ./bumper { };
}