*: turn 5pkgs into a(n optional) module
This commit is contained in:
parent
8b130a6628
commit
0cf6d065f4
@ -43,16 +43,12 @@ let stockholm = {
|
|||||||
imports = builtins.filter lib.dir.has-default-nix (lib.concatLists [
|
imports = builtins.filter lib.dir.has-default-nix (lib.concatLists [
|
||||||
(map (f: f "2configs") [ lib.upath ])
|
(map (f: f "2configs") [ lib.upath ])
|
||||||
(map (f: f "3modules") [ lib.kpath lib.upath ])
|
(map (f: f "3modules") [ lib.kpath lib.upath ])
|
||||||
|
(map (f: f "5pkgs") [ lib.kpath lib.upath ])
|
||||||
]);
|
]);
|
||||||
|
|
||||||
krebs.current.enable = true;
|
krebs.current.enable = true;
|
||||||
krebs.current.host = config.krebs.hosts.${current-host-name};
|
krebs.current.host = config.krebs.hosts.${current-host-name};
|
||||||
krebs.current.user = config.krebs.users.${current-user-name};
|
krebs.current.user = config.krebs.users.${current-user-name};
|
||||||
|
|
||||||
nixpkgs.config.packageOverrides = pkgs: let
|
|
||||||
kpkgs = import (lib.kpath "5pkgs") { inherit lib pkgs; };
|
|
||||||
upkgs = import (lib.upath "5pkgs") { inherit lib; pkgs = pkgs // kpkgs; };
|
|
||||||
in kpkgs // upkgs;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
eval = config: import (lib.npath "nixos/lib/eval-config.nix") {
|
eval = config: import (lib.npath "nixos/lib/eval-config.nix") {
|
||||||
|
@ -1,31 +1,33 @@
|
|||||||
{ lib, pkgs, ... }@args:
|
{ lib, pkgs, ... }@args:
|
||||||
with lib;
|
with lib;
|
||||||
{
|
{
|
||||||
haskellPackages = pkgs.haskellPackages.override {
|
nixpkgs.config.packageOverrides = pkgs: {
|
||||||
overrides = self: super:
|
haskellPackages = pkgs.haskellPackages.override {
|
||||||
mapAttrs (name: path: self.callPackage path {})
|
overrides = self: super:
|
||||||
(mapAttrs'
|
mapAttrs (name: path: self.callPackage path {})
|
||||||
(name: type:
|
(mapAttrs'
|
||||||
if hasSuffix ".nix" name
|
(name: type:
|
||||||
then {
|
if hasSuffix ".nix" name
|
||||||
name = removeSuffix ".nix" name;
|
then {
|
||||||
value = ./haskell-overrides + "/${name}";
|
name = removeSuffix ".nix" name;
|
||||||
}
|
value = ./haskell-overrides + "/${name}";
|
||||||
else null)
|
}
|
||||||
(builtins.readDir ./haskell-overrides));
|
else null)
|
||||||
};
|
(builtins.readDir ./haskell-overrides));
|
||||||
|
};
|
||||||
|
|
||||||
push = pkgs.callPackage ./push {
|
push = pkgs.callPackage ./push {
|
||||||
inherit (subdirs) get jq;
|
inherit (subdirs) get jq;
|
||||||
};
|
};
|
||||||
|
|
||||||
ReaktorPlugins = pkgs.callPackage ./Reaktor/plugins.nix {};
|
ReaktorPlugins = pkgs.callPackage ./Reaktor/plugins.nix {};
|
||||||
|
|
||||||
test = {
|
test = {
|
||||||
infest-cac-centos7 = pkgs.callPackage ./test/infest-cac-centos7 {};
|
infest-cac-centos7 = pkgs.callPackage ./test/infest-cac-centos7 {};
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
// import ./builders.nix args
|
||||||
|
// mapAttrs (_: flip pkgs.callPackage {})
|
||||||
|
(filterAttrs (_: dir.has-default-nix)
|
||||||
|
(subdirsOf ./.));
|
||||||
}
|
}
|
||||||
// import ./builders.nix args
|
|
||||||
// mapAttrs (_: flip pkgs.callPackage {})
|
|
||||||
(filterAttrs (_: dir.has-default-nix)
|
|
||||||
(subdirsOf ./.))
|
|
||||||
|
@ -3,15 +3,16 @@
|
|||||||
let
|
let
|
||||||
inherit (pkgs) callPackage;
|
inherit (pkgs) callPackage;
|
||||||
in
|
in
|
||||||
|
{
|
||||||
rec {
|
nixpkgs.config.packageOverrides = rec {
|
||||||
firefoxPlugins = {
|
firefoxPlugins = {
|
||||||
noscript = callPackage ./firefoxPlugins/noscript.nix {};
|
noscript = callPackage ./firefoxPlugins/noscript.nix {};
|
||||||
ublock = callPackage ./firefoxPlugins/ublock.nix {};
|
ublock = callPackage ./firefoxPlugins/ublock.nix {};
|
||||||
vimperator = callPackage ./firefoxPlugins/vimperator.nix {};
|
vimperator = callPackage ./firefoxPlugins/vimperator.nix {};
|
||||||
|
};
|
||||||
|
newsbot-js = callPackage ./newsbot-js/default.nix {};
|
||||||
|
xmonad-lass =
|
||||||
|
let src = pkgs.writeNixFromCabal "xmonad-lass.nix" ./xmonad-lass; in
|
||||||
|
pkgs.haskellPackages.callPackage src {};
|
||||||
};
|
};
|
||||||
newsbot-js = callPackage ./newsbot-js/default.nix {};
|
|
||||||
xmonad-lass =
|
|
||||||
let src = pkgs.writeNixFromCabal "xmonad-lass.nix" ./xmonad-lass; in
|
|
||||||
pkgs.haskellPackages.callPackage src {};
|
|
||||||
}
|
}
|
||||||
|
@ -4,9 +4,11 @@ let
|
|||||||
inherit (pkgs) callPackage;
|
inherit (pkgs) callPackage;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
alsa-hdspmixer = callPackage ./alsa-tools { alsaToolTarget="hdspmixer";};
|
nixpkgs.config.packageOverrides = rec {
|
||||||
alsa-hdspconf = callPackage ./alsa-tools { alsaToolTarget="hdspconf";};
|
alsa-hdspmixer = callPackage ./alsa-tools { alsaToolTarget="hdspmixer";};
|
||||||
alsa-hdsploader = callPackage ./alsa-tools { alsaToolTarget="hdsploader";};
|
alsa-hdspconf = callPackage ./alsa-tools { alsaToolTarget="hdspconf";};
|
||||||
awesomecfg = callPackage ./awesomecfg {};
|
alsa-hdsploader = callPackage ./alsa-tools { alsaToolTarget="hdsploader";};
|
||||||
tw-upload-plugin = callPackage ./tw-upload-plugin {};
|
awesomecfg = callPackage ./awesomecfg {};
|
||||||
|
tw-upload-plugin = callPackage ./tw-upload-plugin {};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -1 +0,0 @@
|
|||||||
_:{}
|
|
@ -1,23 +1,24 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# TODO use XDG_RUNTIME_DIR?
|
nixpkgs.config.packageOverrides = rec {
|
||||||
cr = pkgs.writeScriptBin "cr" ''
|
cr = pkgs.writeScriptBin "cr" ''
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
set -efu
|
set -efu
|
||||||
export LC_TIME=de_DE.utf8
|
export LC_TIME=de_DE.utf8
|
||||||
exec ${pkgs.chromium}/bin/chromium \
|
exec ${pkgs.chromium}/bin/chromium \
|
||||||
--ssl-version-min=tls1 \
|
--ssl-version-min=tls1 \
|
||||||
--disk-cache-dir=/tmp/chromium-disk-cache_"$LOGNAME" \
|
--disk-cache-dir=/tmp/chromium-disk-cache_"$LOGNAME" \
|
||||||
--disk-cache-size=50000000 \
|
--disk-cache-size=50000000 \
|
||||||
"%@"
|
"%@"
|
||||||
'';
|
'';
|
||||||
ff = pkgs.writeScriptBin "ff" ''
|
ff = pkgs.writeScriptBin "ff" ''
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
set -efu
|
set -efu
|
||||||
exec ${pkgs.firefoxWrapper}/bin/firefox $(printf " %q" "$@")
|
exec ${pkgs.firefoxWrapper}/bin/firefox $(printf " %q" "$@")
|
||||||
'';
|
'';
|
||||||
xmonad-tv =
|
xmonad-tv =
|
||||||
let src = pkgs.writeNixFromCabal "xmonad-tv.nix" ./xmonad-tv; in
|
let src = pkgs.writeNixFromCabal "xmonad-tv.nix" ./xmonad-tv; in
|
||||||
pkgs.haskellPackages.callPackage src {};
|
pkgs.haskellPackages.callPackage src {};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
# TODO don't require 5pkgs
|
|
||||||
_:
|
|
||||||
|
|
||||||
{
|
|
||||||
}
|
|
@ -1,22 +1,25 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
cr = pkgs.writeScriptBin "cr" ''
|
nixpkgs.config.packageOverrides = {
|
||||||
#! /bin/sh
|
# TODO use XDG_RUNTIME_DIR?
|
||||||
set -efu
|
cr = pkgs.writeScriptBin "cr" ''
|
||||||
export LC_TIME=de_DE.utf8
|
#! /bin/sh
|
||||||
exec ${pkgs.chromium}/bin/chromium \
|
set -efu
|
||||||
--ssl-version-min=tls1 \
|
export LC_TIME=de_DE.utf8
|
||||||
--disk-cache-dir=/tmp/chromium-disk-cache_"$LOGNAME" \
|
exec ${pkgs.chromium}/bin/chromium \
|
||||||
--disk-cache-size=50000000 \
|
--ssl-version-min=tls1 \
|
||||||
"%@"
|
--disk-cache-dir=/tmp/chromium-disk-cache_"$LOGNAME" \
|
||||||
'';
|
--disk-cache-size=50000000 \
|
||||||
ejabberd = pkgs.callPackage ./ejabberd {
|
"%@"
|
||||||
erlang = pkgs.erlangR16;
|
'';
|
||||||
|
ejabberd = pkgs.callPackage ./ejabberd {
|
||||||
|
erlang = pkgs.erlangR16;
|
||||||
|
};
|
||||||
|
ff = pkgs.callPackage ./ff {};
|
||||||
|
viljetic-pages = pkgs.callPackage ./viljetic-pages {};
|
||||||
|
xmonad-tv =
|
||||||
|
let src = pkgs.writeNixFromCabal "xmonad-tv.nix" ./xmonad-tv; in
|
||||||
|
pkgs.haskellPackages.callPackage src {};
|
||||||
};
|
};
|
||||||
ff = pkgs.callPackage ./ff {};
|
|
||||||
viljetic-pages = pkgs.callPackage ./viljetic-pages {};
|
|
||||||
xmonad-tv =
|
|
||||||
let src = pkgs.writeNixFromCabal "xmonad-tv.nix" ./xmonad-tv; in
|
|
||||||
pkgs.haskellPackages.callPackage src {};
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user