-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
36 lines (32 loc) · 1 KB
/
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
30
31
32
33
34
35
36
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
uno.url = "github:jkxyz/uno";
uno.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, flake-utils, uno }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; };
in {
unoConfigurations.default = uno.lib.configuration {
inherit system;
processes = {
echo = {
environment = { YOUR_NAME = "World"; };
command = "echo Hello, $YOUR_NAME && sleep 5000";
};
postgres = uno.lib.processes.postgres {
inherit system;
dataDir = "data/postgres";
};
postgres13 = uno.lib.processes.postgres {
inherit system;
package = pkgs.postgresql_13;
dataDir = "data/postgres13";
port = 5433;
};
};
};
});
}