chore: initialized project
This commit is contained in:
commit
d79fe97b7e
24 changed files with 786 additions and 0 deletions
34
systems/flake-module.nix
Normal file
34
systems/flake-module.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ self, inputs, ... }:
|
||||
let
|
||||
makeHost =
|
||||
class:
|
||||
{ name, ... }:
|
||||
{
|
||||
imports = [
|
||||
./${name}/default.nix
|
||||
./${name}/hardware.nix
|
||||
./${name}/disko.nix
|
||||
];
|
||||
|
||||
deployment = {
|
||||
targetHost = name;
|
||||
targetUser = null;
|
||||
};
|
||||
|
||||
networking.hostName = name;
|
||||
};
|
||||
in
|
||||
{
|
||||
flake = {
|
||||
colmenaHive = inputs.colmena.lib.makeHive {
|
||||
meta = {
|
||||
nixpkgs = import inputs.nixpkgs-stable { system = "x86_64-linux"; };
|
||||
specialArgs = { inherit self inputs; };
|
||||
};
|
||||
|
||||
rena = makeHost "nixos";
|
||||
};
|
||||
|
||||
nixosConfigurations = self.colmenaHive.nodes;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue