[NixOS] Reindent flake
This commit is contained in:
parent
2cb01ceead
commit
a05cb56d60
@ -121,26 +121,31 @@
|
|||||||
nixpkgs.lib.nixosSystem (args // {
|
nixpkgs.lib.nixosSystem (args // {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = baseModules ++ modules;
|
modules = baseModules ++ modules;
|
||||||
specialArgs = { inherit inputs; } // specialArgs;
|
specialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
myPackages = {
|
||||||
|
taffybar = inputs.imalison-taffybar.defaultPackage."${system}";
|
||||||
|
};
|
||||||
|
} // specialArgs;
|
||||||
});
|
});
|
||||||
machineFilenames = builtins.attrNames (builtins.readDir ./machines);
|
machineFilenames = builtins.attrNames (builtins.readDir ./machines);
|
||||||
machineNameFromFilename = filename: builtins.head (builtins.split "\\." filename);
|
machineNameFromFilename = filename: builtins.head (builtins.split "\\." filename);
|
||||||
mkConfigurationParams = filename: {
|
mkConfigurationParams = filename: {
|
||||||
name = machineNameFromFilename filename;
|
name = machineNameFromFilename filename;
|
||||||
value = {
|
value = {
|
||||||
modules = [ (./machines + ("/" + filename)) ];
|
modules = [ (./machines + ("/" + filename)) ./base.nix ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
defaultConfigurationParams =
|
defaultConfigurationParams =
|
||||||
builtins.listToAttrs (map mkConfigurationParams machineFilenames);
|
builtins.listToAttrs (map mkConfigurationParams machineFilenames);
|
||||||
customParams = {
|
customParams = {
|
||||||
biskcomp = {
|
biskcomp = {
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
};
|
|
||||||
air-gapped-pi = {
|
|
||||||
system = "aarch64-linux";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
air-gapped-pi = {
|
||||||
|
system = "aarch64-linux";
|
||||||
|
};
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = builtins.mapAttrs (machineName: params:
|
nixosConfigurations = builtins.mapAttrs (machineName: params:
|
||||||
|
Loading…
Reference in New Issue
Block a user