I am using home-manager
on Debian 11.
This is my home.nix
:
config,
pkgs,
...
}: let nixgl = import <nixgl> { };
in {
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "moss";
home.homeDirectory = "/home/moss";
# Packages that should be installed to the user profile.
home.packages = [
pkgs.tixati
pkgs.yate
pkgs.google-chrome
pkgs.teams
pkgs.skypeforlinux
nixgl.auto.nixGLNvidia
pkgs.yarn
pkgs.signal-desktop
pkgs.postman
pkgs.nodePackages_latest.firebase-tools
pkgs.fnm
pkgs.nodePackages_latest.typescript-language-server
pkgs.nodePackages_latest.vscode-langservers-extracted
pkgs.helix
pkgs.discord
pkgs.remnote
pkgs.veracrypt
pkgs.cloudflare-warp
pkgs.yt-dlp
pkgs.nuclear
pkgs.element-desktop
# To ensure we have the correct version of nix installed
config.nix.package
];
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "22.05";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# enable non-free software
nixpkgs.config.allowUnfree = true;
# enable experimental features
nix = {
package = pkgs.nix;
# settings.experimental-features = [ "nix-command" "flakes" ];
settings.experimental-features = [ "nix-command" ];
};
# set some environment variables that will ease usage of software
# installed with nix on non-NixOS linux
# (fixing local issues, settings XDG_DATA_DIRS, etc.):
targets.genericLinux.enable = true;
# kitty terminal
# programs.kitty.enable = true;
# fish shell
programs.fish.enable = true;
programs.fish.interactiveShellInit = ''fnm env --use-on-cd | source'';
programs.fish.plugins = [
{
name = "tide";
src = pkgs.fetchFromGitHub {
owner = "IlanCosman";
repo = "tide";
rev = "6833806ba2eaa1a2d72a5015f59c284f06c1d2db";
sha256 = "vi4sYoI366FkIonXDlf/eE2Pyjq7E/kOKBrQS+LtE+M=";
};
}
{
name = "nix-env";
src = pkgs.fetchFromGitHub {
owner = "lilyball";
repo = "nix-env";
rev = "7b65bd228429e852c8fdfa07601159130a818cfa";
sha256 = "vi4sYoI366FkIonXDlf/eE2Pyjq7E/kOKBrQS+LtE+M=";
};
}
];
}
The nix channel list:
$ nix-channel --list
home-manager https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz
nixgl https://github.com/guibou/nixGL/archive/main.tar.gz
nixos https://nixos.org/channels/nixos-unstable
Now when I try to update packages nothing happens:
$ cd ~/.config/nixpkgs
$ nix-channel --update
unpacking channels...
$ home-manager switch
No change so reusing latest profile generation 60
For example take the package yt-dlp
.
On the nix packages website it’s version is 2023.3.4
But on my computer it is:
$ yt-dlp --version
2022.10.04
How to I update yt-dlp
to the latest version?