From d206479a6dee3bb928183d08d72762039baa5ae6 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Thu, 8 Aug 2024 21:08:25 +0200 Subject: [PATCH] run fmt --- flake.nix | 13 ++++++++----- home-modules/common/default.nix | 7 ++++++- home-modules/users/default.nix | 4 +--- nixos-modules/nix/default.nix | 4 +--- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index 35c2e5b..aeaca7e 100644 --- a/flake.nix +++ b/flake.nix @@ -83,7 +83,12 @@ }; outputs = - inputs@{ self, nixpkgs, treefmt-nix, ... }: + inputs@{ + self, + nixpkgs, + treefmt-nix, + ... + }: let forSystems = f: nixpkgs.lib.attrsets.genAttrs nixpkgs.lib.systems.flakeExposed (system: f system); pkgs' = system: nixpkgs.legacyPackages.${system}; @@ -101,10 +106,8 @@ pkgs = pkgs' system; } ); - formatter = forSystems ( - system: (treefmtEval system).config.build.wrapper - ); - checks = forSystems ( system: { + formatter = forSystems (system: (treefmtEval system).config.build.wrapper); + checks = forSystems (system: { formatting = (treefmtEval system).config.build.check self; }); }; diff --git a/home-modules/common/default.nix b/home-modules/common/default.nix index 7d50e09..7f65a72 100644 --- a/home-modules/common/default.nix +++ b/home-modules/common/default.nix @@ -1,4 +1,9 @@ -{ config, lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: let cfg = config.jopejoe1.common; diff --git a/home-modules/users/default.nix b/home-modules/users/default.nix index 9f3cf27..fa673ae 100644 --- a/home-modules/users/default.nix +++ b/home-modules/users/default.nix @@ -1,6 +1,4 @@ { ... }: { - imports = [ - ./jopejoe1 - ]; + imports = [ ./jopejoe1 ]; } diff --git a/nixos-modules/nix/default.nix b/nixos-modules/nix/default.nix index 0af21bd..f8cb95b 100644 --- a/nixos-modules/nix/default.nix +++ b/nixos-modules/nix/default.nix @@ -51,9 +51,7 @@ in }; buildMachines = [ { - systems = [ - "x86_64-linux" - ]; + systems = [ "x86_64-linux" ]; supportedFeatures = [ "kvm" "big-parallel"