Skip to content

josh/home-manager

Repository files navigation

Home Manager

My Nix Home Manager.

Installation

Flakes

Standalone

$ nix run github:josh/home-manager#home-manager -- switch --flake github:josh/home-manager#josh@x86_64-linux-tui

NixOS module

{
  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 ];
      };
    };
}

Channels

$ 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

NixOS module

{ config, pkgs, ... }:
{
  imports = [ <josh-home-manager/nixos.nix> ];
}