doc: replace inputs input with self
The docs no longer needs access to arbitrary flake inputs. We should enforce this strictly by taking `self` instead.
This commit is contained in:
parent
bdf092d169
commit
07af242a44
2 changed files with 5 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
self,
|
||||
callPackage,
|
||||
writeText,
|
||||
stdenvNoCC,
|
||||
|
|
@ -27,13 +27,13 @@ let
|
|||
home_manager = {
|
||||
name = "Home Manager";
|
||||
configuration = evalDocs [
|
||||
inputs.self.homeModules.stylix
|
||||
self.homeModules.stylix
|
||||
./hm_compat.nix
|
||||
];
|
||||
};
|
||||
nixos = {
|
||||
name = "NixOS";
|
||||
configuration = evalDocs inputs.self.nixosModules.stylix;
|
||||
configuration = evalDocs self.nixosModules.stylix;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -324,7 +324,7 @@ let
|
|||
|
||||
# Permalink to view a source file on GitHub. If the commit isn't known,
|
||||
# then fall back to the latest commit.
|
||||
declarationCommit = inputs.self.rev or "master";
|
||||
declarationCommit = self.rev or "master";
|
||||
declarationPermalink = "https://github.com/nix-community/stylix/blob/${declarationCommit}";
|
||||
|
||||
# Renders a single option declaration. Example output:
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
))
|
||||
{
|
||||
doc = pkgs.callPackage ../doc {
|
||||
inherit inputs;
|
||||
inherit (inputs) self;
|
||||
};
|
||||
serve-docs = pkgs.callPackage ../doc/server.nix {
|
||||
inherit (config.packages) doc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue