50
flake.nix
50
flake.nix
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
agenix.url = "github:ryantm/agenix";
|
agenix.url = "github:ryantm/agenix";
|
||||||
colmena.url = "github:zhaofengli/colmena";
|
|
||||||
disko = {
|
disko = {
|
||||||
url = "github:nix-community/disko";
|
url = "github:nix-community/disko";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -25,41 +24,20 @@
|
|||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
inputs:
|
inputs:
|
||||||
let
|
inputs.snowfall-lib.mkFlake {
|
||||||
flake = inputs.snowfall-lib.mkFlake {
|
inherit inputs;
|
||||||
inherit inputs;
|
src = ./.;
|
||||||
src = ./.;
|
snowfall = {
|
||||||
snowfall = {
|
namespace = "snowfall";
|
||||||
namespace = "snowfall";
|
|
||||||
};
|
|
||||||
systems.modules.nixos = with inputs; [
|
|
||||||
agenix.nixosModules.default
|
|
||||||
];
|
|
||||||
homes.modules = with inputs; [
|
|
||||||
agenix.homeManagerModules.default
|
|
||||||
];
|
|
||||||
channels-config = {
|
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
inv = import ./inventory.nix;
|
systems.modules.nixos = with inputs; [
|
||||||
mkNode = name: node: {
|
agenix.nixosModules.default
|
||||||
imports = [ (./systems/x86_64-linux + "/${name}") ];
|
];
|
||||||
deployment.targetHost = node.zerotierIp;
|
homes.modules = with inputs; [
|
||||||
|
agenix.homeManagerModules.default
|
||||||
|
];
|
||||||
|
channels-config = {
|
||||||
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
colmenaNodes = builtins.mapAttrs mkNode inv.nodes;
|
};
|
||||||
colmenaHive = inputs.colmena.lib.makeHive (
|
|
||||||
{
|
|
||||||
meta = {
|
|
||||||
nixpkgs = import inputs.nixpkgs {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
config.allowUnfree = true;
|
|
||||||
};
|
|
||||||
specialArgs = { inherit inputs; };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
// colmenaNodes
|
|
||||||
);
|
|
||||||
in
|
|
||||||
flake // { colmenaHive = colmenaHive; };
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
pkgs.claude-code
|
pkgs.claude-code
|
||||||
pkgs.codex
|
pkgs.codex
|
||||||
pkgs.amp-cli
|
pkgs.amp-cli
|
||||||
inputs.colmena.packages.aarch64-darwin.colmena
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
|
|||||||
Reference in New Issue
Block a user