treewide: alejandra -> nixfmt-rfc-style
This commit is contained in:
parent
d64c02e3da
commit
6558fdb739
51 changed files with 1108 additions and 928 deletions
|
@ -1,15 +1,27 @@
|
|||
{lib, ...}: {
|
||||
configurations.nixos = let
|
||||
mkInstaller = system: ({pkgs, ...}: {
|
||||
nixpkgs = {inherit system;};
|
||||
{ lib, ... }:
|
||||
{
|
||||
configurations.nixos =
|
||||
let
|
||||
mkInstaller =
|
||||
system:
|
||||
(
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
nixpkgs = {
|
||||
inherit system;
|
||||
};
|
||||
|
||||
environment.systemPackages = [pkgs.nixos-install-tools];
|
||||
environment.systemPackages = [ pkgs.nixos-install-tools ];
|
||||
|
||||
# Make nixos-anywhere treat this as a installer iso
|
||||
system.nixos.variant_id = "installer";
|
||||
});
|
||||
systems = ["aarch64-linux" "x86_64-linux"];
|
||||
installers = map (system: lib.nameValuePair "installer-${system}" (mkInstaller system)) systems;
|
||||
in
|
||||
# Make nixos-anywhere treat this as a installer iso
|
||||
system.nixos.variant_id = "installer";
|
||||
}
|
||||
);
|
||||
systems = [
|
||||
"aarch64-linux"
|
||||
"x86_64-linux"
|
||||
];
|
||||
installers = map (system: lib.nameValuePair "installer-${system}" (mkInstaller system)) systems;
|
||||
in
|
||||
lib.listToAttrs installers;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue