run nix format on this repository
This commit is contained in:
parent
db07347757
commit
5a3edc7ff0
19 changed files with 363 additions and 174 deletions
|
|
@ -1,34 +1,52 @@
|
|||
{ nixosUsers ? {}, nixosGroups ? {}, nixosModules, hmModules ? { default = {}; }, ...}@flake: { ... }@inputs: { host, ... }@imports: let
|
||||
host' = name: snippets: let
|
||||
{
|
||||
nixosUsers ? { },
|
||||
nixosGroups ? { },
|
||||
nixosModules,
|
||||
hmModules ? {
|
||||
default = { };
|
||||
},
|
||||
...
|
||||
}@flake:
|
||||
{ ... }@inputs:
|
||||
{ host, ... }@imports:
|
||||
let
|
||||
host' =
|
||||
name: snippets:
|
||||
let
|
||||
|
||||
overlay = self: super: {
|
||||
makeModulesClosure = x: super.makeModulesClosure (x // { allowMissing = true; });
|
||||
};
|
||||
|
||||
common = { modulesPath, lib, ... }: {
|
||||
config.nixpkgs.overlays = [ overlay ];
|
||||
config.networking.hostName = lib.mkForce name;
|
||||
config.home-manager = {
|
||||
sharedModules = [ hmModules.default ] ;
|
||||
overlay = self: super: {
|
||||
makeModulesClosure = x: super.makeModulesClosure (x // { allowMissing = true; });
|
||||
};
|
||||
|
||||
imports = [
|
||||
#(modulesPath + "/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix")
|
||||
#(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
|
||||
(modulesPath + "/installer/sd-card/sd-image-raspberrypi.nix")
|
||||
nixosModules.default
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
};
|
||||
common =
|
||||
{ modulesPath, lib, ... }:
|
||||
{
|
||||
config.nixpkgs.overlays = [ overlay ];
|
||||
config.networking.hostName = lib.mkForce name;
|
||||
config.home-manager = {
|
||||
sharedModules = [ hmModules.default ];
|
||||
};
|
||||
|
||||
system = inputs.nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs flake; };
|
||||
modules = [ common ]
|
||||
imports = [
|
||||
#(modulesPath + "/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix")
|
||||
#(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
|
||||
(modulesPath + "/installer/sd-card/sd-image-raspberrypi.nix")
|
||||
nixosModules.default
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
};
|
||||
|
||||
system = inputs.nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs flake; };
|
||||
modules = [
|
||||
common
|
||||
]
|
||||
++ snippets
|
||||
++ builtins.attrValues nixosUsers
|
||||
++ builtins.attrValues nixosGroups
|
||||
;
|
||||
};
|
||||
in system.config.system.build.sdImage;
|
||||
++ builtins.attrValues nixosGroups;
|
||||
};
|
||||
in
|
||||
system.config.system.build.sdImage;
|
||||
|
||||
in builtins.mapAttrs host' host
|
||||
in
|
||||
builtins.mapAttrs host' host
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue