Skip to content

Commit 4add092

Browse files
committed
setup encore
1 parent f4a67c3 commit 4add092

5 files changed

Lines changed: 78 additions & 19 deletions

File tree

flake.lock

Lines changed: 28 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
inputs = {
55
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
6-
# stable's atuin is older than the one that migrated the local atuin DB, so
7-
# atuin (and other fast-moving tools) pin unstable — see
8-
# hosts/macbook/home/atuin.nix and packages/unstable.nix.
96
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
107
nix-darwin = {
118
url = "github:nix-darwin/nix-darwin/nix-darwin-26.05";
@@ -42,6 +39,11 @@
4239
treefmt-nix = {
4340
url = "github:numtide/treefmt-nix";
4441
inputs.nixpkgs.follows = "nixpkgs";
42+
};
43+
# encore binaries
44+
encore = {
45+
url = "github:encoredev/encore-flake";
46+
inputs.nixpkgs.follows = "nixpkgs";
4547
};
4648
};
4749

home/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ pkgs, ... }:
1+
{ inputs, pkgs, ... }:
22
{
33
imports = [
44
./atuin.nix
@@ -10,6 +10,8 @@
1010
./packages.nix
1111
./rust.nix
1212
./xdg.nix
13+
./encore.nix
14+
inputs.encore.homeModules.default
1315
];
1416

1517
# session vars point LOCALE_ARCHIVE at i18n.glibcLocales; the default

home/encore.nix

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{ inputs, pkgs, ... }:
2+
let
3+
unstable = import inputs.nixpkgs-unstable { inherit (pkgs.stdenv.hostPlatform) system; };
4+
in
5+
{
6+
home.packages = with pkgs; [
7+
inputs.encore.packages.${pkgs.stdenv.hostPlatform.system}.encore
8+
cmake
9+
protobuf
10+
pulumi
11+
unstable.clickhouse
12+
vercel-pkg
13+
overmind
14+
docker-compose
15+
cloudflared
16+
cue
17+
google-cloud-sdk
18+
pgcli
19+
];
20+
21+
programs.encore = {
22+
enable = true;
23+
settings = {
24+
browser = "never";
25+
};
26+
};
27+
28+
programs.fish.shellInit = ''
29+
# google-cloud-sdk
30+
fish_add_path --global --move --path "/opt/homebrew/share/google-cloud-sdk/bin"
31+
# encore bin folder
32+
fish_add_path --global --move --path "$HOME/bin"
33+
'';
34+
35+
# work identity, scoped by repo path
36+
xdg.configFile."jj/conf.d/encore.toml".text = ''
37+
--when.repositories = ["~/Developer/encoredev"]
38+
39+
[user]
40+
email = "nikita@encore.dev"
41+
'';
42+
}

home/jj.nix

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,4 @@ in
118118

119119
# ui.diff-formatter
120120
home.packages = [ pkgs.difftastic ];
121-
122-
# work identity, scoped by repo path
123-
xdg.configFile."jj/conf.d/cerve.toml".text = ''
124-
--when.repositories = ["~/Developer/cerve"]
125-
126-
[user]
127-
email = "nikita.galaiko@cerve.com"
128-
'';
129121
}

0 commit comments

Comments
 (0)