diff --git a/docs/alpine-desktop-setup/installation.md b/docs/alpine-desktop-setup/installation.md index bece3ad..cd77974 100644 --- a/docs/alpine-desktop-setup/installation.md +++ b/docs/alpine-desktop-setup/installation.md @@ -151,10 +151,10 @@ timeout 2 editor no ``` -Before finishing the installation `networkmanager` will be installed for networking. +Before finishing the installation `networkmanager` will be installed for networking. Also install `networkmanager-wifi` and `wpa_supplicant` for wifi functionality. ``` -# apk add networkmanager +# apk add networkmanager networkmanager-wifi wpa_supplicant # setup-devd udev # rc-update add networkmanager default ``` diff --git a/docs/alpine-desktop-setup/post-install/network.md b/docs/alpine-desktop-setup/post-install/network.md index 6c39e8e..c1ad93c 100644 --- a/docs/alpine-desktop-setup/post-install/network.md +++ b/docs/alpine-desktop-setup/post-install/network.md @@ -2,13 +2,7 @@ ## Using wifi -Although `dhcp` will already work out of the box, wifi will not. Luckily there exists `wpa_supplicant`. First install the necessary packages: - -``` -# apk add networkmanager-wifi wpa_supplicant -``` - -Then configure `/etc/NetworkManager/NetworkManager.conf` to use `wpa_supplicant`: +Although `dhcp` will already work out of the box, wifi will not. Luckily there exists `wpa_supplicant`. Enable it in `/etc/NetworkManager/NetworkManager.conf`: ``` [main] @@ -74,4 +68,4 @@ Although ipv6 will be turned off in the [security section](https://docs.bijl.us/ ``` [connection] ipv6.ip6-privacy=2 -``` \ No newline at end of file +``` diff --git a/docs/alpine-desktop-setup/post-install/nix.md.old b/docs/alpine-desktop-setup/post-install/nix.md.old new file mode 100644 index 0000000..d5e2554 --- /dev/null +++ b/docs/alpine-desktop-setup/post-install/nix.md.old @@ -0,0 +1,61 @@ +# Nix (WIP - don't follow) + +The *Nix package manager* is a package manager which allows for user independent packages and a whole lot more (although it's not necessarily minimal). To set it up install it's package and activate it's service: + +## Setup + +``` +# apk add nix +# rc-update add nix-daemon default +# rc-service nix-daemon start +``` + +> (The `nix` package is only available in the `edge` and `apk-ample` repositories) + +And add this line to `/etc/nix/nix.conf` to globally enable some features which will be necessary later: + +``` +experimental-features = nix-command flakes +``` + +Don't forget to add your user to the nix group: + +``` +# adduser nix +``` + +## Usage + +Nix can be used to manage your `$HOME` with `home-manager` and `flakes`. ([Here a link explaining it all](https://juliu.is/tidying-your-home-with-nix/)) + +Now that Nix is up and running utilize the `flake` that comes with the [config files](https://docs.bijl.us/alpine-desktop-setup/post-install/config-files/) to set up our home for us. But before initialising `nix` make sure that you set the correct `` in both `flake.nix` and `home.nix` which are located in `~/.config/home-manager`. Then after changing those simply run this command from that same directory: + +``` +$ nix run . switch +``` + +This should have installed `nixpkgs-unstable` and `home-manager`. Verify this with: + +``` +$ home-manager --version +``` + +And thanks to `home-manager` we can easily set up and manage an entire graphical enviroment with all the necessary packages in one go. + +You are now also able to install packages as a user without root from `nixpkgs`: + +``` +$ nix-env -iA nixpkgs. +``` + +You can also test a package before installing it with `nix-shell -p ` + +To update your system, in `~/.config/home-manager` run: + +``` +$ nix flake update +``` + +### Nix-Bubblewrap + +### NixGL