From 74c142d8f74c34b1ac701777c115ffed572e92fd Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sat, 29 Jun 2024 11:46:59 +0300 Subject: [PATCH] Flake : Refactor nixosConfigurations from // to foldl. --- flake.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index 495c29c..7a20274 100644 --- a/flake.nix +++ b/flake.nix @@ -232,20 +232,20 @@ x86System = hostname: mkSystem hostname "x86_64-linux" []; x86LiveSystem = hostname: mkSystem hostname "x86_64-linux" liveModules; - in + in nixpkgs.lib.foldl' (acc: h: acc // h) {} [ # Bellow is the list of all the hosts I currently use. # They call the `mkSystem` function that I defined above # with their specific parameters. # You might be interested in `live` and `nixOnDroidConfiguration` # for Live ISO and Android configurations respectively. - (x86System "dasha") // - (x86System "desktop") // - (x86System "fsight") // - (x86System "home") // - (x86System "laptop") // - (x86System "work") // + (x86System "dasha") + (x86System "desktop") + (x86System "fsight") + (x86System "home") + (x86System "laptop") + (x86System "work") (x86LiveSystem "live") - ; + ]; # Android. nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration {