Home Manager: Difference between revisions

imported>Fufexan
m fix fetchTarball
imported>Nix
add a good concise video guide
Line 29: Line 29:


=== Usage as a NixOS module ===
=== Usage as a NixOS module ===
Here is a nixos module template you can use:
Here is a nixos module template you can use:
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
Line 99: Line 100:


=== Examples ===
=== Examples ===
* [https://github.com/yrashk/nix-home/blob/master/home.nix Yurii Rashkovskii's home.nix]
* [https://github.com/yrashk/nix-home/blob/master/home.nix Yurii Rashkovskii's home.nix]
* [https://git.sr.ht/~ben/config bsima's configs]
* [https://git.sr.ht/~ben/config bsima's configs]
Line 104: Line 106:


== FAQ ==
== FAQ ==
=== I cannot set GNOME themes via home-manager ===
=== I cannot set GNOME themes via home-manager ===
You will have to add
You will have to add
<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
Line 112: Line 116:


=== Installed apps don’t show up in Ubuntu's/GNOME's "Show Applications" ===
=== Installed apps don’t show up in Ubuntu's/GNOME's "Show Applications" ===
Consider some of the workarounds here: https://github.com/nix-community/home-manager/issues/1439.
Consider some of the workarounds here: https://github.com/nix-community/home-manager/issues/1439.


== Alternatives ==
== Alternatives ==
* [[Wrappers vs. Dotfiles]] shows how (per-user) wrapper scripts can be used in place of dotfiles in the user's home directory
* [[Wrappers vs. Dotfiles]] shows how (per-user) wrapper scripts can be used in place of dotfiles in the user's home directory
== See also ==
* Starting from a machine with a minimal freshly installed NixOS ISO (KDE Plasma version), this video outlines the basics of using Home Manager as of 2021: [http://enia.cc/r/wilt-nixos-install-home-manager Wil T's "''NixOS Installation Guide''" (Home Manager section starts at 27:22)]