Hi,
I’ve a configuration.nix
that look like this (with the help of FAQ - NixOS Wiki ):
{ config, pkgs, ... }:
with pkgs;
let
unstablePkgs = import <nixos-unstable> { config = { allowUnfree = true; }; };
in
{
environment.systemPackages = with unstablePkgs; [
k9s
## ide stay stable
pkgs.vscode
pkgs.home-manager
];
}
On my user profile I use home-manager to manager my configuration files (fish/git/tmux etc.) that I use like that:
{ pkgs, ... }:
with import <nixpkgs> { };
{
nixpkgs.config.allowUnfree = true;
home.sessionVariables = {
EDITOR = "vim";
GS_OPTIONS = "-sPAPERSIZE=a4";
PAGER = "less";
VISUAL = "code";
};
programs.home-manager.enable = true;
programs.autojump = {
enable = true;
enableBashIntegration = true;
};
programs.command-not-found.enable = true;
programs.bash = {
enable = true;
};
programs.git = {
enable = true;
userName = "Toto";
userEmail = "toto@toto.eu";
};
}
My problem look like this this:
$ sudo su - -c "k9s version"
Version: 0.26.7
$ k9s version
Version: 0.25.18
$
My main user does not have “unstable” version of software, but only stable.
But my user root is ok.
So I think I have a mess between nixos and home-manager; how is build my profile ?