From 35e390902afc85d2437ed5461383a65e6af7d3a8 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Fri, 11 Oct 2024 14:52:33 -0400 Subject: [PATCH] chore: simplify formatting Ran nix fmt and used built-ins where possible. --- flake.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 7170c3f3..a846c444 100644 --- a/flake.nix +++ b/flake.nix @@ -30,9 +30,8 @@ outputs = { self, nixpkgs, ... }: let - inherit (nixpkgs.lib) nixosSystem genAttrs; + inherit (nixpkgs.lib) nixosSystem genAttrs replaceStrings; inherit (nixpkgs.lib.filesystem) packagesFromDirectoryRecursive listFilesRecursive; - inherit (builtins) map replaceStrings; forAllSystems = function: @@ -57,9 +56,7 @@ name: import ./modules/${name}.nix ); - homeModules = genAttrs (map nameOf (listFilesRecursive ./home)) ( - name: import ./home/${name}.nix - ); + homeModules = genAttrs (map nameOf (listFilesRecursive ./home)) (name: import ./home/${name}.nix); overlays = genAttrs (map nameOf (listFilesRecursive ./overlays)) ( name: import ./overlays/${name}.nix