mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-04-20 03:34:07 +02:00
run fmt
This commit is contained in:
parent
55aeca7389
commit
d206479a6d
4 changed files with 16 additions and 12 deletions
11
flake.nix
11
flake.nix
|
@ -83,7 +83,12 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
inputs@{ self, nixpkgs, treefmt-nix, ... }:
|
inputs@{
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
treefmt-nix,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
forSystems = f: nixpkgs.lib.attrsets.genAttrs nixpkgs.lib.systems.flakeExposed (system: f system);
|
forSystems = f: nixpkgs.lib.attrsets.genAttrs nixpkgs.lib.systems.flakeExposed (system: f system);
|
||||||
pkgs' = system: nixpkgs.legacyPackages.${system};
|
pkgs' = system: nixpkgs.legacyPackages.${system};
|
||||||
|
@ -101,9 +106,7 @@
|
||||||
pkgs = pkgs' system;
|
pkgs = pkgs' system;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
formatter = forSystems (
|
formatter = forSystems (system: (treefmtEval system).config.build.wrapper);
|
||||||
system: (treefmtEval system).config.build.wrapper
|
|
||||||
);
|
|
||||||
checks = forSystems (system: {
|
checks = forSystems (system: {
|
||||||
formatting = (treefmtEval system).config.build.check self;
|
formatting = (treefmtEval system).config.build.check self;
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.jopejoe1.common;
|
cfg = config.jopejoe1.common;
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [ ./jopejoe1 ];
|
||||||
./jopejoe1
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,9 +51,7 @@ in
|
||||||
};
|
};
|
||||||
buildMachines = [
|
buildMachines = [
|
||||||
{
|
{
|
||||||
systems = [
|
systems = [ "x86_64-linux" ];
|
||||||
"x86_64-linux"
|
|
||||||
];
|
|
||||||
supportedFeatures = [
|
supportedFeatures = [
|
||||||
"kvm"
|
"kvm"
|
||||||
"big-parallel"
|
"big-parallel"
|
||||||
|
|
Loading…
Add table
Reference in a new issue