My Nix Home Manager.
$ nix run github:josh/home-manager#home-manager -- switch --flake github:josh/home-manager#josh@x86_64-linux-tui
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
josh-home-manager = {
url = "github:josh/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ nixpkgs, josh-home-manager }:
{
nixosConfigurations.foo = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ josh-home-manager.nixosModules.default ];
};
};
}
$ sudo nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
$ sudo nix-channel --add https://github.com/josh/home-manager/archive/main.tar.gz josh-home-manager
$ sudo nix-channel --update
{ config, pkgs, ... }:
{
imports = [ <josh-home-manager/nixos.nix> ];
}