# How to use topgrade with home-manager?

**URL:** <https://universal-blue.discourse.group/t/how-to-use-topgrade-with-home-manager/4708>\
**Category:** Bluefin\
**Created:** [October 25, 2024, 8:29am UTC](https://universal-blue.discourse.group/t/how-to-use-topgrade-with-home-manager/4708 "2024-10-25T08:29:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmartinortiz](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mmartinortiz](https://universal-blue.discourse.group/u/mmartinortiz)\
**Post date:** [October 25, 2024, 8:29am UTC](https://universal-blue.discourse.group/t/how-to-use-topgrade-with-home-manager/4708/1 "2024-10-25T08:29:46Z")

</div>

Hi,

As many others, I keep a choice of applications defined via Nix and available across all computers I use. When Bluefin updates, it checks for a file at `~/.config/home-manager/home.nix` for updating any present Nix configuration.

Without being any expert at Nix, I’ve been trying to create a `home.nix` file that can be used by `topgrade`.

So far, I could not find the right way to “just” use the configuration I have defined in my remote GitHub repo (or local copy, after I clone it).

Do other home-manager users of Bluefin have some tips about how to update the packages of my Nix configuration with `topgrade`?

---

<div class="post-metadata">

**Author:** ![Plyply](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@Plyply](https://universal-blue.discourse.group/u/Plyply)\
**Post date:** [October 25, 2024, 9:46am UTC](https://universal-blue.discourse.group/t/how-to-use-topgrade-with-home-manager/4708/2 "2024-10-25T09:46:44Z")

</div>

Alias maybe?  
I use some AUR packages in my arch container and topgrade wont update those so I alias:

```auto
alias upd='paru && ujust update'

```

---

<div class="post-metadata">

**Author:** ![mmartinortiz](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mmartinortiz](https://universal-blue.discourse.group/u/mmartinortiz)\
**Post date:** [October 25, 2024, 7:07pm UTC](https://universal-blue.discourse.group/t/how-to-use-topgrade-with-home-manager/4708/3 "2024-10-25T19:07:03Z")

</div>

I’m not sure if I understand you, how would I use the alias to reuse my Nix configuration?

---

<div class="post-metadata">

**Author:** ![oggelito](https://yyz2.discourse-cdn.com/free1/user_avatar/universal-blue.discourse.group/oggelito/32/3916_2.png) [@oggelito](https://universal-blue.discourse.group/u/oggelito)\
**Post date:** [October 26, 2024, 5:52pm UTC](https://universal-blue.discourse.group/t/how-to-use-topgrade-with-home-manager/4708/4 "2024-10-26T17:52:10Z")

</div>

I have the same question, would love to peek at a working github repo

---

<div class="post-metadata">

**Author:** ![mmartinortiz](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mmartinortiz](https://universal-blue.discourse.group/u/mmartinortiz)\
**Post date:** [October 27, 2024, 11:05am UTC](https://universal-blue.discourse.group/t/how-to-use-topgrade-with-home-manager/4708/5 "2024-10-27T11:05:46Z")

</div>

A possible solution that works for me and it is quite simple:

1. Clone your Nix configuration locally
2. Link `~/.config/home-manager` to your configuration folder (the whole folder)

In other words, put all your Nix and Home manager stuff in `~/.config/home-manager` and then `topgrade` will update it every time it runs.

You can always test it with `topgrade --only home_manager`

---

<div class="post-metadata">

**Author:** ![mmartinortiz](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@mmartinortiz](https://universal-blue.discourse.group/u/mmartinortiz)\
**Post date:** [October 27, 2024, 11:18am UTC](https://universal-blue.discourse.group/t/how-to-use-topgrade-with-home-manager/4708/6 "2024-10-27T11:18:02Z")

</div>

There is still something I need to figure out:

In Bluefin, my home path is different to my other machines. How could I handle that automatically?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/univeral_blue/original/2X/e/e39f7d1952979cf23b0f8d634e025fb38da50026.png) [@system](https://universal-blue.discourse.group/u/system)\
**Post date:** [January 25, 2025, 11:18am UTC](https://universal-blue.discourse.group/t/how-to-use-topgrade-with-home-manager/4708/7 "2025-01-25T11:18:25Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
