From 77e6383d7c032ac7a5db2dddf7fbb762c4ef7bd0 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sat, 15 Jul 2023 11:06:43 -0400 Subject: [PATCH] Refactor --- README.md | 1 + flake.nix | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ae821c..377c4d1 100644 --- a/README.md +++ b/README.md @@ -55,3 +55,4 @@ Start from `flake.nix` (see [Flakes](https://nixos.wiki/wiki/Flakes)). [`flake-p sudo nixos-rebuild boot ``` - To autoformat the project tree using nixpkgs-fmt, run `nix fmt`. +- To build all flake outputs (locally or in CI), run `nix run github:srid/nixci` \ No newline at end of file diff --git a/flake.nix b/flake.nix index 89cd401..6718d75 100644 --- a/flake.nix +++ b/flake.nix @@ -100,7 +100,12 @@ treefmt.config = { projectRootFile = "flake.nix"; programs.nixpkgs-fmt.enable = true; - settings.formatter.nixpkgs-fmt.excludes = [ "nixos/jenkins/plugins.nix" ]; + settings.formatter.nixpkgs-fmt.excludes = + let + nixosConfig = self.nixosConfigurations.actual; + jenkinsPluginsFile = nixosConfig.config.jenkins-nix-ci.plugins-file; + in + [ jenkinsPluginsFile ]; }; packages.default = self'.packages.activate;