pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/linyinfeng/flat-flake

045c7e0.css" /> GitHub - linyinfeng/flat-flake: Enforce flat flake inputs · GitHub
Skip to content

linyinfeng/flat-flake

Repository files navigation

flat-flake

Enforce flat flake inputs. That is, all inputs are explicitly specified at the top-level or explicitly allowed.

Usage

CLI

Just run,

nix run github:linyinfeng/flat-flake -- check FLAKE

To explicitly allow non-top-level inputs, add these input paths to outputs.flatFlake.allowed, e.g. to add flake-utils/system:

{
  outputs = {...}: {
    flatFlake = {
      allowed = [
        ["flake-utils" "systems"]
      ];
    };
  };
}

Use check --lock-file /path/to/flake.lock to read lock contents directly from a file instead of calling nix flake metadata --json.

Use check --config-file /path/to/flat-flake.json to read configuration directly from a file instead of calling nix eval flake#flatFlake --json.

flat-flake.json example:

{
  "allowed": [
    ["flake-utils", "systems"]
  ]
}

Use --help to get help information.

flake-parts module

Just import github:linyinfeng/flat-flake#flakeModules.flat-flake. The module will create checks.${system}.flat-flake for you.

To set flat flake configuration, use the flatFlake.config option. Set flatFlake.check.enable = false to disable check generation. Set flatFlake.output.enable = false to disable configuration output.

Read flake-module.nix for more information.

About

Enforce flat flake inputs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy