Skip to content

home manager not following user channel #376

@shreyanshk

Description

@shreyanshk

Hi,
I'm new to home-manager and to NixOS in general. Please pardon me if I am missing anything.
I'm following the unstable channel for my user profile.

$ nix-channel --list
nixuns https://nixos.org/channels/nixos-unstable

BUT stable channel for the root/system profile

# nix-channel --list
nixos https://nixos.org/channels/nixos-18.03

I've installed homemanager with nix-env

# nix-env -iA nixuns.home-manager

My ~/.config/nixpkgs/home.nix file is as follows:

{pkgs, ... }: {
        home.packages = with pkgs; [
                aria2
                beets
                firefox
                go
                hexchat
                htop
                libreoffice
                neovim-qt
                qsyncthingtray
                tldr
                vlc
                youtube-dl
        ];

        programs.git = {
                enable = true;
                userName = "<Username>";
                userEmail = "<email>";
        };

        programs.home-manager.enable = true;
}

However, when I generate my profile with home-manage, the packages are installed from the stable branch.
I think home-manager should use the same branch used by nix-env for building user profile packages.
I know this because home-manager, for example, installs libreoffice-fresh version 6.0.2.1 (which is from stable branch) and not 6.1.0.3 (which is available in unstable branch).
Another example is Go compiler. Version 1.10.1 is installed from stable but not 1.11 which is available in unstable which I'm following.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions