1
0
Fork 0

Rename overlay

This commit is contained in:
Malte Brandy 2020-06-27 17:02:09 +02:00
parent 90baba3e1b
commit c12598ee3c
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
6 changed files with 3 additions and 41 deletions

View file

@ -1,14 +0,0 @@
# 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

@ -1,12 +0,0 @@
{
nix = {
binaryCaches = [
"https://hercules-ci.cachix.org"
];
binaryCachePublicKeys = [
"hercules-ci.cachix.org-1:ZZeDl9Va+xe9j+KqdzoBZMFJHVQ42Uu/c/1/KMC5Lw0="
];
};
}

View file

@ -11,7 +11,7 @@ in {
./mpclient.nix
./neovim
];
nixpkgs.overlays = import ../overlays.nix { inherit lib; };
nixpkgs.overlays = import ../overlays { inherit lib; };
programs = {
home-manager.enable = true;

View file

@ -3,7 +3,7 @@
inherit (pkgs.xorg) xev;
inherit (pkgs.gitAndTools) hub;
inherit (pkgs)
meld icedtea8_web octave filezilla cachix nix-review gparted
meld icedtea8_web octave filezilla nix-review gparted
grafana-devel;
};
}

View file

@ -1,11 +0,0 @@
{ lib }:
let
overlayPath = ./overlays;
candidates = lib.attrNames (builtins.readDir overlayPath);
pathToOverlay = n: overlayPath + ("/" + n);
isNixFile = n: builtins.match ".*\\.nix" n != null;
isNixDir = n: builtins.pathExists (pathToOverlay n + "/default.nix");
isOverlay = n: isNixDir n || isNixFile n;
overlays = builtins.filter isOverlay candidates;
importOverlay = n: import (pathToOverlay n);
in map importOverlay overlays

View file

@ -2,7 +2,6 @@
let me = config.m-0.private.me;
in {
imports = [
../cachix.nix
../common
./modules/laptop.nix
./modules/loginctl-linger.nix
@ -11,7 +10,7 @@ in {
i18n = { defaultLocale = "en_US.UTF-8"; };
# For nixos-rebuild
nixpkgs.overlays = import ../overlays.nix { inherit lib; };
nixpkgs.overlays = import ../overlays { inherit lib; };
time.timeZone = "Europe/Berlin";