I installed a minimal 20.03 configuration.nix and I am doing as much of the user configuration as possible via 20.03 home-manager. In this case, I want to install dmenu-wayland which isn’t in 20.03 but is in unstable. There are hints in the answers to previous questions but not enough that I understand what I am doing wrong.
And here is how I use it in /home/user/.config/home-manager/user/gui/sway.nix:
{ config, lib, pkgs, ... }:
let
pkgsUnstable = import <nixpkgs-unstable> {};
in {
wayland.windowManager.sway = {
...
menu = "${pkgsUnstable.dmenu-wayland}/bin/dmenu-wl_run -i";
...
};
home.packages = [
pkgsUnstable.dmenu-wayland
];
}
But home-manager can’t find :
$ cd ~/.config/home-manager
$ ./switch.sh
error: file 'nixpkgs-unstable' was not found in the Nix search path (add it using $NIX_PATH or -I), at /home/user/.config/home-manager/user/gui/sway.nix:6:25
(use '--show-trace' to show detailed location information)
I’m confused why is obviously in the channel but home-manager can’t find it. What I am doing wrong?
It is no longer complaining about not finding nixpkgs-unstable. But it appears that there is a problem with the new module pet.
$ ./switch.sh
error: attribute 'formats' missing, at /nix/store/mq8gnrwsq9blsjlrd4mx9a0sljb7sah0-source/modules/programs/pet.nix:9:12
(use '--show-trace' to show detailed location information)
Unsurprising I guess. But this looks like I bug in the pet module. Suggestions?