doc: add missing module args (#1534)
This commit is contained in:
parent
67a6479c1a
commit
79e816c2e6
4 changed files with 18 additions and 8 deletions
|
|
@ -18,6 +18,7 @@ To set a [Tinted Theming](https://github.com/tinted-theming/schemes) color
|
|||
scheme, declare:
|
||||
|
||||
```nix
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
|
||||
}
|
||||
|
|
@ -80,6 +81,7 @@ To set a wallpaper, provide a path or an arbitrary derivation:
|
|||
```
|
||||
|
||||
- ```nix
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
stylix.image = pkgs.fetchurl {
|
||||
url = "https://www.pixelstalk.net/wp-content/uploads/2016/05/Epic-Anime-Awesome-Wallpapers.jpg";
|
||||
|
|
@ -157,6 +159,7 @@ To make things look more uniform, you could replace the serif font with
|
|||
the sans-serif font:
|
||||
|
||||
```nix
|
||||
{ config, ... }:
|
||||
{
|
||||
stylix.fonts.serif = config.stylix.fonts.sansSerif;
|
||||
}
|
||||
|
|
@ -165,6 +168,7 @@ the sans-serif font:
|
|||
Or even choose monospace for everything:
|
||||
|
||||
```nix
|
||||
{ config, ... }:
|
||||
{
|
||||
stylix.fonts = {
|
||||
serif = config.stylix.fonts.monospace;
|
||||
|
|
|
|||
|
|
@ -210,6 +210,7 @@ import it to get the NixOS module as the `nixosModules.stylix` attribute and the
|
|||
Home Manager module as the `homeModules.stylix` attribute.
|
||||
|
||||
```nix
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
stylix = pkgs.fetchFromGitHub {
|
||||
owner = "nix-community";
|
||||
|
|
|
|||
|
|
@ -161,6 +161,7 @@ Or you can create a [Mustache](http://mustache.github.io/) template and use
|
|||
it as a function. This returns a derivation which builds the template.
|
||||
|
||||
```nix
|
||||
{ config, ... }:
|
||||
{
|
||||
environment.variables.MY_APPLICATION_CONFIG_FILE =
|
||||
let
|
||||
|
|
|
|||
|
|
@ -6,19 +6,23 @@ If you combined Home Manager with your NixOS configuration, write these options
|
|||
within a Home Manager section, either for all users:
|
||||
|
||||
```nix
|
||||
home-manager.sharedModules = [
|
||||
{
|
||||
stylix.targets.xyz.enable = false;
|
||||
}
|
||||
];
|
||||
{
|
||||
home-manager.sharedModules = [
|
||||
{
|
||||
stylix.targets.xyz.enable = false;
|
||||
}
|
||||
];
|
||||
}
|
||||
```
|
||||
|
||||
Or for a specific user:
|
||||
|
||||
```nix
|
||||
home-manager.users.«name» = {
|
||||
stylix.targets.xyz.enable = false;
|
||||
};
|
||||
{
|
||||
home-manager.users.«name» = {
|
||||
stylix.targets.xyz.enable = false;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
[Read more about per-user themes.](../../configuration.md#multi-user-configurations)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue