mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-24 19:51:30 +02:00
chore: simplify formatting
Ran nix fmt and used built-ins where possible.
This commit is contained in:
parent
c9652f1680
commit
35e390902a
@ -30,9 +30,8 @@
|
|||||||
outputs =
|
outputs =
|
||||||
{ self, nixpkgs, ... }:
|
{ self, nixpkgs, ... }:
|
||||||
let
|
let
|
||||||
inherit (nixpkgs.lib) nixosSystem genAttrs;
|
inherit (nixpkgs.lib) nixosSystem genAttrs replaceStrings;
|
||||||
inherit (nixpkgs.lib.filesystem) packagesFromDirectoryRecursive listFilesRecursive;
|
inherit (nixpkgs.lib.filesystem) packagesFromDirectoryRecursive listFilesRecursive;
|
||||||
inherit (builtins) map replaceStrings;
|
|
||||||
|
|
||||||
forAllSystems =
|
forAllSystems =
|
||||||
function:
|
function:
|
||||||
@ -57,9 +56,7 @@
|
|||||||
name: import ./modules/${name}.nix
|
name: import ./modules/${name}.nix
|
||||||
);
|
);
|
||||||
|
|
||||||
homeModules = genAttrs (map nameOf (listFilesRecursive ./home)) (
|
homeModules = genAttrs (map nameOf (listFilesRecursive ./home)) (name: import ./home/${name}.nix);
|
||||||
name: import ./home/${name}.nix
|
|
||||||
);
|
|
||||||
|
|
||||||
overlays = genAttrs (map nameOf (listFilesRecursive ./overlays)) (
|
overlays = genAttrs (map nameOf (listFilesRecursive ./overlays)) (
|
||||||
name: import ./overlays/${name}.nix
|
name: import ./overlays/${name}.nix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user