diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-02 12:01:33 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-02 12:34:00 +0200 |
commit | fdf6f74d3221e3dad853898f296149baea0aa476 (patch) | |
tree | 9fcd0db87425e2f533354a431d2fa81bd55cbe36 /config | |
parent | 6e2dc958bc8c5aac4871d2a618741fa4628ed126 (diff) | |
download | Nix-fdf6f74d3221e3dad853898f296149baea0aa476.tar.gz Nix-fdf6f74d3221e3dad853898f296149baea0aa476.tar.zst Nix-fdf6f74d3221e3dad853898f296149baea0aa476.zip |
Refactor configuration and overlays
Diffstat (limited to 'config')
-rw-r--r-- | config/config.nix | 30 | ||||
-rw-r--r-- | config/overlays.nix | 1 |
2 files changed, 1 insertions, 30 deletions
diff --git a/config/config.nix b/config/config.nix deleted file mode 100644 index d6b4714..0000000 --- a/config/config.nix +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | { | ||
2 | packageOverrides = pkgs: with pkgs; { | ||
3 | # buildEnv is not absolutely equivalent to | ||
4 | # `nix-env -i -f ./nixRoot/default.nix`, see | ||
5 | # https://github.com/NixOS/nix/issues/2682 | ||
6 | immaePackages = pkgs.buildEnv { | ||
7 | name = "Immae-packages"; | ||
8 | paths = builtins.attrValues (import ./nixRoot/default.nix); | ||
9 | pathsToLink = [ "/bin" "/etc" "/include" "/lib" "/libexec" "/share"]; | ||
10 | extraOutputsToInstall = [ "bin" "man" "doc" "info" ]; | ||
11 | }; | ||
12 | # This adds header colors to the builds, but it rebuilds the whole | ||
13 | # world from scratch, so only use it to debug! | ||
14 | # add it as postHook in derivations | ||
15 | immaePostHook = '' | ||
16 | header() { | ||
17 | echo -ne "\033[1;36m" | ||
18 | echo -n "$1" | ||
19 | echo -e "\033[0m" | ||
20 | } | ||
21 | |||
22 | echoCmd() { | ||
23 | printf "\033[1;34m%s:\033[0m" "$1" | ||
24 | shift | ||
25 | printf ' %q' "$@" | ||
26 | echo | ||
27 | } | ||
28 | ''; | ||
29 | }; | ||
30 | } | ||
diff --git a/config/overlays.nix b/config/overlays.nix new file mode 100644 index 0000000..1040d59 --- /dev/null +++ b/config/overlays.nix | |||
@@ -0,0 +1 @@ | |||
builtins.attrValues (import ./nixRoot/overlays) | |||