Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evanmusic14/home-manager

Nix package manager, home manager, and flake configuration
https://github.com/evanmusic14/home-manager

home-manager home-manager-config nix nix-flake nixos nixpkgs

Last synced: 2 months ago
JSON representation

Nix package manager, home manager, and flake configuration

Awesome Lists containing this project

README

        

# home-manager
![Nix and Home Manager install](https://github.com/EvanMusic14/home-manager/actions/workflows/testCommands.yml/badge.svg)

## Steps without clone
- Run either of the single commands below
```sh
sudo apt install curl -y \
&& sh <(curl -L https://nixos.org/nix/install) --daemon --yes \
&& source /etc/profile \
&& nix --extra-experimental-features 'nix-command flakes' run github:EvanMusic14/home-manager/main#homeConfigurations."$USER".activationPackage
```
```sh
bash <(curl -L https://raw.githubusercontent.com/EvanMusic14/home-manager/main/bin/curl-setup)
```

## Steps with clone
- Run `ssh-keygen -t rsa -b 4096 -N "" -f ~/.ssh/id_rsa && cat ~/.ssh/id_rsa.pub`
- Add public key to git
- Run command below
```sh
cd $HOME/.config \
&& sudo apt install git -y \
&& git clone [email protected]:EvanMusic14/home-manager.git \
&& cd home-manager \
&& ./bin/setup
```

## Resources
- home-manager/flake config
- https://www.chrisportela.com/posts/home-manager-flake/
- https://gvolpe.com/blog/nix-flakes/
- https://nix-community.github.io/home-manager/release-notes.xhtml#sec-release-22.11-highlights
- podman
- https://www.reddit.com/r/NixOS/comments/1bh7vy8/does_anyone_have_a_working_example_of_a/
- https://github.com/FabianKoehnen/rootless-podman-homemanager

- `home.activation` scripts
- https://github.com/nix-community/home-manager/blob/master/modules/lib/dag.nix
- https://github.com/nix-community/home-manager/blob/b8b391ad18b2ec47d1e95e247301edd4e8326154/modules/files.nix#L50-L83