pkgs: import all packages into core overlay

This commit is contained in:
Timothy DeHerrera 2019-12-26 18:25:02 -07:00
parent 787eb050df
commit 667fad8f1e
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
6 changed files with 12 additions and 18 deletions

View File

@ -1,7 +1,7 @@
{ stdenv, fetchzip }: { stdenv, fetchzip }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "dejavu-sans-mono-nerdfonts-${version}"; name = "dejavu-nerdfont-${version}";
version = "2.0.0"; version = "2.0.0";
src = fetchzip { src = fetchzip {

5
pkgs/default.nix Normal file
View File

@ -0,0 +1,5 @@
self: super: {
sddm-chili = super.callPackage ./applications/display-managers/sddm/themes/chili {};
dejavu_nerdfont = super.callPackage ./data/fonts/dejavu-nerdfont {};
purs = super.callPackage ./shells/zsh/purs {};
}

View File

@ -142,6 +142,11 @@ in
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = let
overlay = import ../pkgs;
in
[ overlay ];
programs.mtr.enable = true; programs.mtr.enable = true;

View File

@ -31,19 +31,12 @@
]; ];
fonts = { fonts = {
fonts = [ pkgs.dejaVuNerdFont ]; fonts = [ pkgs.dejavu_nerdfont ];
fontconfig.defaultFonts.monospace = [ fontconfig.defaultFonts.monospace = [
"DejaVu Sans Mono Nerd Font Complete Mono" "DejaVu Sans Mono Nerd Font Complete Mono"
]; ];
}; };
nixpkgs.overlays = let
font = self: super: {
dejaVuNerdFont = super.callPackage ../../pkgs/data/fonts/dejavu-nerdfont {};
};
in
[ font ];
documentation.dev.enable = true; documentation.dev.enable = true;
programs.thefuck.enable = true; programs.thefuck.enable = true;

View File

@ -63,13 +63,6 @@ in
}; };
nixpkgs.overlays = let
purs = self: super:
{ purs = super.callPackage ../../../pkgs/shells/zsh/purs {}; };
in
[ purs ];
programs.zsh = { programs.zsh = {
enable = true; enable = true;

View File

@ -102,8 +102,6 @@ in
[icon theme] [icon theme]
Inherits=Adwaita Inherits=Adwaita
''; '';
sddm-chili = super.callPackage ../../pkgs/applications/display-managers/sddm/themes/chili {};
}; };
in in
[ overlay ]; [ overlay ];