config(nixos): Make sure NixOS config uses same set of overlays as "nix repl"

This commit is contained in:
Dmitry Bogatov 2024-04-02 19:19:12 -04:00
parent 6a9cc1dc04
commit 44f59b1ad9
6 changed files with 29 additions and 28 deletions

View File

@ -53,7 +53,7 @@
mv ./redoc-static.html $out
'';
doc-nixpkgs = import (<snapshot> + "/nixpkgs/doc") {};
doc-nixpkgs = import (<nixpkgs> + "/doc") {};
doc-posix = callPackage ./doc-posix.nix {};
langzig-reference = fetchurl {
url = "https://ziglang.org/documentation/0.10.1/index.html";

View File

@ -41,6 +41,4 @@ self: super: {
browser-cookie3
];
};
tkinter = null;
}

View File

@ -54,6 +54,7 @@
fonts.packages = with pkgs; [source-code-pro];
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = import ../../overlays.nix;
services.lorri.enable = true;
services.postgresql = {
enable = true;

View File

@ -4,6 +4,7 @@
home.homeDirectory = "/home/kaction";
home.packages = [
pkgs.htop
pkgs.Documentation
];
programs.emacs = {

View File

@ -1,25 +1,3 @@
let
overlay = self: super: {
# Create symlink named "sr-foo" for each surfraw module (elvi).
# Unlike "sr foo" they are nicely auto-completed without
# programmable completion interface.
surfraw = super.surfraw.overrideAttrs (_: {
postInstall = ''
for elvi in $out/lib/surfraw/* ; do
name=$(basename $elvi)
ln -sf ../lib/surfraw/$name $out/bin/sr-$name
done
'';
});
python3 = super.python3.override {
packageOverrides = import ./config/flake/universe/python3/overrides.nix;
};
};
in
import ./nixpkgs {
overlays = [
overlay
(import ./config/flake/default.nix)
];
}
import ./nixpkgs {
overlays = import ./overlays.nix;
}

23
overlays.nix Normal file
View File

@ -0,0 +1,23 @@
let
overlay = self: super: {
# Create symlink named "sr-foo" for each surfraw module (elvi).
# Unlike "sr foo" they are nicely auto-completed without
# programmable completion interface.
surfraw = super.surfraw.overrideAttrs (_: {
postInstall = ''
for elvi in $out/lib/surfraw/* ; do
name=$(basename $elvi)
ln -sf ../lib/surfraw/$name $out/bin/sr-$name
done
'';
});
python3 = super.python3.override {
packageOverrides = import ./config/flake/universe/python3/overrides.nix;
};
};
in
[
overlay
(import ./config/flake/default.nix)
]