feat(Justfile): cachix recipe and apply locally without ssh
This commit is contained in:
parent
349057f1c3
commit
5b6ecd0a25
8 changed files with 414 additions and 1 deletions
14
nix/os/cachix.nix
Normal file
14
nix/os/cachix.nix
Normal 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/"];
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue