Talk:Home Manager: Difference between revisions

From NixOS Wiki
imported>Vater
 
m Tomodachi94 moved page Talk:Home manager to Talk:Home Manager over redirect: Misspelled title: the spelling "Home Manager" is consistently used in documentation: https://github.com/nix-community/home-manager?tab=readme-ov-file#home-manager-using-nix
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== draft for an installation section ==
Looks like the nixos module usage is different from that suggested in the documentation:
https://nix-community.github.io/home-manager/index.html#sec-install-nixos-module


=== Installation ===
Why is that?
<!--
<syntaxhighlight lang="nix"></syntaxhighlight>
<syntaxhighlight lang="console"></syntaxhighlight>
-->


==== Installation via … on a NixOS system ====
---


> Why is that?


: <syntaxhighlight lang="console">sudo $EDITOR /etc/nixos/configuration.nix</syntaxhighlight>
@Onny Things changed, I guess. We should not document how to use independently developed software here. If you see NixOS wiki pages outdated w.r.t. official documentation, remove that information.
<syntaxhighlight lang="nix"></syntaxhighlight>
<syntaxhighlight lang="nix">
  environment.systemPackages = with pkgs; [
</syntaxhighlight>
<syntaxhighlight lang="nix"></syntaxhighlight>
<syntaxhighlight lang="nix" highlight=1>
    home-manager
</syntaxhighlight>
<syntaxhighlight lang="nix"></syntaxhighlight>
<syntaxhighlight lang="nix">
  ];
</syntaxhighlight>
<syntaxhighlight lang="nix"></syntaxhighlight>


: <syntaxhighlight lang="console">sudo nixos-rebuild switch</syntaxhighlight>
-- Fricklerhandwerk
 
<s>
: <syntaxhighlight lang="console">man home-configuration.nix</syntaxhighlight>
</s>
 
: <syntaxhighlight lang="console">mkdir ~/.config/nixpkgs/</syntaxhighlight>
: <syntaxhighlight lang="console">touch ~/.config/nixpkgs/home.nix</syntaxhighlight>
 
<s>
: <syntaxhighlight lang="console">$EDITOR ~/.config/nixpkgs/home.nix</syntaxhighlight>
 
: <syntaxhighlight lang="console">home-manager switch</syntaxhighlight>
</s>
 
==== Installation via <code>nix-env</code> on a NixOS system ====

Latest revision as of 04:21, 21 June 2024

Looks like the nixos module usage is different from that suggested in the documentation: https://nix-community.github.io/home-manager/index.html#sec-install-nixos-module

Why is that?

---

> Why is that?

@Onny Things changed, I guess. We should not document how to use independently developed software here. If you see NixOS wiki pages outdated w.r.t. official documentation, remove that information.

-- Fricklerhandwerk