diff --git a/doc/src/configuration.md b/doc/src/configuration.md index c6f61b10..e49a678a 100644 --- a/doc/src/configuration.md +++ b/doc/src/configuration.md @@ -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; diff --git a/doc/src/installation.md b/doc/src/installation.md index 74785631..a314130d 100644 --- a/doc/src/installation.md +++ b/doc/src/installation.md @@ -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"; diff --git a/doc/src/modules.md b/doc/src/modules.md index f885805a..29a3fae5 100644 --- a/doc/src/modules.md +++ b/doc/src/modules.md @@ -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 diff --git a/doc/src/options/platforms/home_manager.md b/doc/src/options/platforms/home_manager.md index 8ed03ee1..1aedee73 100644 --- a/doc/src/options/platforms/home_manager.md +++ b/doc/src/options/platforms/home_manager.md @@ -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)