Skip to content

Commit

Permalink
Enable nixConfig, add cachix to all host machines (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethnt authored Dec 21, 2023
1 parent c3aa0be commit c8bc9db
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 19 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 15 additions & 14 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
{
description = "e10";

# nixConfig = {
# extra-substituters = [
# "https://nix-community.cachix.org"
# "https://e10.cachix.org"
# "https://numtide.cachix.org"
# "https://attic.e10.camp"
# ];
# extra-trusted-public-keys = [
# "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
# "e10.cachix.org-1:/++Tmo/ghEqnLwsQJdXn04c262agRCK5PaPYz8NcVfo="
# "numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
# "attic.e10.camp-e10:GRxL2EezM+0vZXpa9fePFqTM1qstxiV56tc5K3eDugk="
# ];
# };
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
"https://e10.cachix.org"
"https://numtide.cachix.org"
"https://attic.e10.camp/e10"
];

extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"e10.cachix.org-1:/++Tmo/ghEqnLwsQJdXn04c262agRCK5PaPYz8NcVfo="
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
"attic.e10.camp-e10:GRxL2EezM+0vZXpa9fePFqTM1qstxiV56tc5K3eDugk="
];
};

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
Expand Down
1 change: 1 addition & 0 deletions modules/development/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'';

packages = with pkgs; [
cachix
deadnix
just
statix
Expand Down
8 changes: 6 additions & 2 deletions modules/profiles/core/caching.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{ inputs, ... }: {
environment.systemPackages = [ inputs.attic.packages.x86_64-linux.attic ];
{ inputs, pkgs, ... }: {
environment.systemPackages = with pkgs; [
inputs.attic.packages.x86_64-linux.attic
cachix
];

nix.settings = {
substituters = [
"https://e10.cachix.org"
"https://numtide.cachix.org"
"https://attic.e10.camp"
];

trusted-public-keys = [
"e10.cachix.org-1:/++Tmo/ghEqnLwsQJdXn04c262agRCK5PaPYz8NcVfo="
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
Expand Down

0 comments on commit c8bc9db

Please sign in to comment.