Migrate back to gccemacs with build cache

This commit is contained in:
coolneng 2020-09-22 03:09:43 +02:00
parent 1e752b7b71
commit 1f5d0dc707
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
5 changed files with 33 additions and 1 deletions

8
cachix/nix-community.nix Normal file
View File

@ -0,0 +1,8 @@
{
nix = {
binaryCaches = [ "https://nix-community.cachix.org" ];
binaryCachePublicKeys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
}

View File

@ -104,6 +104,8 @@
./modules/printing.nix ./modules/printing.nix
./modules/periodic.nix ./modules/periodic.nix
./modules/power.nix ./modules/power.nix
./modules/cachix.nix
./overlays/emacs-overlay.nix
]; ];
} }

13
modules/cachix.nix Normal file
View 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/" ];
}

View File

@ -20,7 +20,7 @@
haskellPackages.pandoc-citeproc haskellPackages.pandoc-citeproc
# Text editors # Text editors
neovim neovim
emacs emacsGcc
ripgrep ripgrep
fd fd
clang clang
@ -77,6 +77,8 @@
## Python ## Python
nodePackages.pyright nodePackages.pyright
black black
# Overlays
cachix
]; ];
# Fonts declaration # Fonts declaration

View File

@ -0,0 +1,7 @@
{
nixpkgs.overlays = [
(import (builtins.fetchTarball {
url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
}))
];
}