I have a simple derivation that I want to run via home-manager that looks like:
{ stdenv, lib, pkgs, fetchFromGitHub }:
with lib;
let
in
stdenv.mkDerivation rec {
name = "nvchad";
src = fetchFromGitHub {
owner = "nvchad";
repo = "nvchad";
rev = "c7a4d4e3376b1684c1dd117d53e94480b2d7c9fe";
sha256 = "14xskps1h07w2fwj78aw7sd6la0c8w2jwf5cwzsg67ikzr69iqmi";
};
installPhase = ''
cp -r $src/* ~/.config/nvim
'';
}
I have home.nix which runs my home manager stuff via nixos:
{ config, lib, pkgs, ... }:
with lib;
let
home-manager = builtins.fetchTarball
"https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz";
in {
imports = [ (import "${home-manager}/nixos") ];
pkgs.callPackage ./nvchad.nix { };
...
}
However when I run this I get the following error:
error: syntax error, unexpected PATH, expecting â.â or â=â, at /home/vagrant/nixos/home.nix:12:20
(use ââshow-traceâ to show detailed location information)
make: *** [Makefile:8: pc] Error 1
Does anybody know how I can install a derivation from home manager?