Flake : Refactor nixosConfigurations from // to foldl.

This commit is contained in:
Dmitry Voronin 2024-06-29 11:46:59 +03:00
parent 8bc112df90
commit 74c142d8f7
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -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 {