nixos-configuration/flake.nix

42 lines
1009 B
Nix
Raw Normal View History

2023-12-08 19:07:54 +00:00
{
description = "Colmena hive configuration.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
2023-12-10 18:58:13 +00:00
framework.url = "path:./hive/framework";
phobos.url = "path:./hive/phobos";
2023-12-08 19:07:54 +00:00
};
outputs = { nixpkgs, framework, phobos, ... }:
let
system = "x86_64-linux";
in
{
colmena = {
meta = {
nixpkgs = import nixpkgs { inherit system; };
specialArgs = { inherit system; };
2023-12-10 18:58:13 +00:00
nodeSpecialArgs = {
framework = {
jrpotter = import ./users/jrpotter;
};
};
2023-12-08 19:07:54 +00:00
};
# Local machines. Deploy using `colmena apply-local [--sudo]`
framework = {
imports = [ framework.nixosModules.default ];
deployment = {
allowLocalDeployment = true;
targetHost = null; # Disable SSH deployment.
};
};
# Remote machines. Deploy using `colmena apply`
phobos = phobos.nixosModules.default;
};
};
}