From 006bf56fd76977ca632ab65dc634da080147a778 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 23 Dec 2023 17:35:38 +0800 Subject: [PATCH] docs: why install i3/hyprland in home-manager instead of NixOS --- home/linux/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/linux/README.md b/home/linux/README.md index 3f8e4b1e..6227780c 100644 --- a/home/linux/README.md +++ b/home/linux/README.md @@ -11,3 +11,13 @@ 1. used by my hyprland desktop. 7. `desktop-i3.nix`: the entrypoint of i3's configuration, it import all the submodules above, except `hyprland`. 1. used by my i3 desktop. + + +## Why install I3/Hyprland in Home Manager instead of a NixOS Module? + +1. I3 & Hyprland's configuration file is located in `~/.config`, which can be easily managed by Home Manager. +2. There're other user-specific systemd servcies, such gammastep, wallpaper-switcher, etc. which can be easily managed by Home Manager, but if we start i3/hyprland in NixOS Module, they may failed to start automatically. With i3/hyprland installed via home-manager, we can control their systemd service's dependent order, to avoid issues like this. +3. By install as less as possible in NixOS Module, we can: + 1. Make the NixOS system more secure and stable. + 2. Make this flake more portable to other non-NixOS systems, as home-manager can be installed on any Linux system. +