Add explanations on how to install Stylix without flakes

Fixes #25.
This commit is contained in:
DwarfMaster 2023-02-18 09:57:26 +01:00 committed by Damien Cassou
parent b9fc184323
commit e4a12fec97
No known key found for this signature in database
GPG key ID: B68746238E59B548

View file

@ -56,6 +56,7 @@ install Stylix directly into your Home Manager configuration instead. This
could be useful if you are on a different Linux distribution, or a NixOS could be useful if you are on a different Linux distribution, or a NixOS
machine which is managed by someone else. machine which is managed by someone else.
```nix ```nix
{ {
inputs = { inputs = {
@ -79,6 +80,32 @@ you will need to copy the settings described below into both of your
configurations, as keeping them separate means that they cannot follow each configurations, as keeping them separate means that they cannot follow each
other automatically. other automatically.
### Without flakes
If you haven't enabled flakes yet or don't want to use this feature, the
`default.nix` re-exports all the flake outputs. This means that once you have a
copy of this repo, using either a local checkout,
[niv](https://github.com/nmattia/niv) or any other method, you can import it to
get the NixOS module as the `nixosModules.stylix` attribute and the Home Manager
module as the `homeManagerModules.stylix` attribute.
```nix
let
stylix = pkgs.fetchFromGitHub {
owner = "danth";
repo = "stylix";
rev = "f123771bd968cd1ac34a9f655a793de9c7bce7e6";
sha256 = "1671giqcyahxrbf7jf3r1mzj1j1rpla36fgyia7g86x7w28war2p";
};
in {
imports = [ stylix.homeManagerModules.stylix ];
stylix.image = ./wallpaper.jpg;
}
```
<small>Example usage of the Home Manager module without flakes</small>
## Wallpaper ## Wallpaper
To start theming, you need to set a wallpaper image. To start theming, you need to set a wallpaper image.