Merge pull request #36 from DamienCassou/readme-installation
Add explanations on how to install Stylix without flakes
This commit is contained in:
commit
8a31f2e2e9
4 changed files with 55 additions and 0 deletions
27
README.md
27
README.md
|
|
@ -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
|
||||
machine which is managed by someone else.
|
||||
|
||||
|
||||
```nix
|
||||
{
|
||||
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
|
||||
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
|
||||
|
||||
To start theming, you need to set a wallpaper image.
|
||||
|
|
|
|||
6
default.nix
Normal file
6
default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(import (let lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||
in fetchTarball {
|
||||
url =
|
||||
"https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||
sha256 = lock.nodes.flake-compat.locked.narHash;
|
||||
}) { src = ./.; }).defaultNix
|
||||
17
flake.lock
generated
17
flake.lock
generated
|
|
@ -41,6 +41,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-compat": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1673956053,
|
||||
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
|
||||
"owner": "edolstra",
|
||||
"repo": "flake-compat",
|
||||
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "edolstra",
|
||||
"repo": "flake-compat",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
|
@ -82,6 +98,7 @@
|
|||
"inputs": {
|
||||
"base16": "base16",
|
||||
"coricamu": "coricamu",
|
||||
"flake-compat": "flake-compat",
|
||||
"home-manager": "home-manager",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,11 @@
|
|||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
flake-compat = {
|
||||
url = "github:edolstra/flake-compat";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue