feat: correctly pass overlays to HM configurations

Add `zig master` and `neovim-nightly` from top-level `flake` to `cheetah` HM configuration
This commit is contained in:
reo101 2022-11-21 14:42:45 +02:00
parent 0fbfd6973e
commit ef283b9c1f
2 changed files with 7 additions and 19 deletions

View file

@ -26,6 +26,6 @@
backupFileExtension = "hm-bak"; backupFileExtension = "hm-bak";
# useGlobalPkgs = true; # useGlobalPkgs = true;
# extraOptions = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
}; };
} }

View file

@ -1,4 +1,4 @@
{ lib, config, pkgs, ... }: { inputs, lib, config, pkgs, ... }:
{ {
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
@ -49,32 +49,20 @@
# Dhall # Dhall
dhall dhall
dhall-lsp-server dhall-lsp-server
];
# nixpkgs = { # Zig
# overlays = [ zigpkgs.master
# inputs.neovim-nightly-overlay.overlay ];
# inputs.zig-overlay.overlay
# ];
#
# config.allowUnfree = true;
# };
nixpkgs = { nixpkgs = {
overlays = [ overlays = [
(import (builtins.fetchTarball { inputs.neovim-nightly-overlay.overlay
url = https://github.com/nix-community/neovim-nightly-overlay/archive/master.tar.gz; inputs.zig-overlay.overlays.default
}))
]; ];
config.allowUnfree = true; config.allowUnfree = true;
}; };
# programs.zig = {
# enable = true;
# package = pkgs.zig;
# };
programs.neovim = { programs.neovim = {
enable = true; enable = true;
package = pkgs.neovim-nightly; package = pkgs.neovim-nightly;