1
0
Fork 0

Install cachix

This commit is contained in:
Malte Brandy 2021-05-18 15:56:39 +02:00
parent 92069b4bd3
commit 4328853a92
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
4 changed files with 28 additions and 2 deletions

14
cachix.nix Normal file
View file

@ -0,0 +1,14 @@
# WARN: this file will get overwritten by $ cachix use <name>
{ pkgs, lib, ... }:
let
folder = ./cachix;
toImport = name: value: folder + ("/" + name);
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key;
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
in {
inherit imports;
nix.binaryCaches = ["https://cache.nixos.org/"];
}

View file

@ -0,0 +1,12 @@
{
nix = {
binaryCaches = [
"https://pre-commit-hooks.cachix.org"
];
binaryCachePublicKeys = [
"pre-commit-hooks.cachix.org-1:Pkk3Panw5AW24TOv6kz3PvLhlH8puAsJTBbOPmBo7Rc="
];
};
}

View file

@ -1,5 +1,5 @@
{ pkgs, config, lib, ... }: {
imports = [ ../../common ./admin.nix ];
imports = [ ../../common ./admin.nix ../../cachix.nix ];
i18n.defaultLocale = "en_US.UTF-8";

View file

@ -12,7 +12,7 @@ self: super: {
inherit (self)
htop tree pwgen borgbackup inotifyTools direnv socat nmap ncdu
tcpdump tmux tig exa fzf ag fd bat ripgrep ranger pass sshuttle vnstat
entr libargon2 mblaze niv compsize mediainfo asciinema gomuks nix-output-monitor fdroidserver jq
entr libargon2 mblaze niv compsize mediainfo asciinema gomuks nix-output-monitor fdroidserver jq cachix
;
};