added cachix
This commit is contained in:
parent
b2b9fa66e4
commit
c90d0d71dc
4 changed files with 27 additions and 2 deletions
13
modules/cachix.nix
Normal file
13
modules/cachix.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
# 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/"];
|
||||
}
|
||||
11
modules/cachix/nix-community.nix
Normal file
11
modules/cachix/nix-community.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
{
|
||||
nix = {
|
||||
binaryCaches = [
|
||||
"https://nix-community.cachix.org"
|
||||
];
|
||||
binaryCachePublicKeys = [
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./apps ./cli ./desktop ./services ];
|
||||
imports = [ ./apps ./cli ./desktop ./services ./cachix.nix ];
|
||||
|
||||
# USERS
|
||||
users.users.moritz = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue