Skip to content

Commit

Permalink
chore: setup cachix
Browse files Browse the repository at this point in the history
radoslawgrochowski committed Jun 25, 2024
1 parent 81e322e commit a8cbaf0
Showing 2 changed files with 21 additions and 1 deletion.
12 changes: 12 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -93,4 +93,16 @@
};
packages = { nvim-rg = pkgs.nvim-rg; };
});

nixConfig = {
experimental-features = [ "nix-command" "flakes" ];
extra-substituters = [
"https://cache.nixos.org"
"https://radoslawgrochowski-dotfiles.cachix.org"
];
extra-trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"radoslawgrochowski-dotfiles.cachix.org-1:H4HOTwe9bPc+P2z/RVW3E8yBN6MwzRA4Xhv9RDpVu8c="
];
};
}
10 changes: 9 additions & 1 deletion modules/nix.nix
Original file line number Diff line number Diff line change
@@ -2,8 +2,16 @@
nix = {
registry.nixpkgs.flake = inputs.nixpkgs-stable;
settings = {
experimental-features = "nix-command flakes";
experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ "@admin" "${username}" ];
substituters = [
"https://cache.nixos.org"
"https://radoslawgrochowski-dotfiles.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"radoslawgrochowski-dotfiles.cachix.org-1:H4HOTwe9bPc+P2z/RVW3E8yBN6MwzRA4Xhv9RDpVu8c="
];
};
};
})

0 comments on commit a8cbaf0

Please sign in to comment.