|
|
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 ====
| |
| | |
| | |
| : <syntaxhighlight lang="console">sudo $EDITOR /etc/nixos/configuration.nix</syntaxhighlight>
| |
| <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>
| |
| | |
| <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 ====
| |
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?