Signed-off-by: Christoph Schmatzler <christoph@schmatzler.com>
This commit is contained in:
2025-08-21 18:21:57 +00:00
parent 52e3c9a177
commit 691fad3b02
4 changed files with 118 additions and 2 deletions

View File

@@ -46,6 +46,7 @@
hostname: let
syncthingOverlay = import ./overlays/syncthing-darwin.nix;
syncthingModule = (syncthingOverlay null {}).darwinSyncthingModule;
opencodeOverlay = import ./overlays/opencode.nix;
in
inputs.darwin.lib.darwinSystem {
system = "aarch64-darwin";
@@ -60,7 +61,7 @@
syncthingModule
{
nixpkgs.overlays = [syncthingOverlay];
nixpkgs.overlays = [syncthingOverlay opencodeOverlay];
nix-homebrew = {
inherit user;
@@ -79,7 +80,9 @@
);
flake.nixosConfigurations = inputs.nixpkgs.lib.genAttrs nixosHosts (
hostname:
hostname: let
opencodeOverlay = import ./overlays/opencode.nix;
in
inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs =
@@ -89,6 +92,9 @@
};
modules = [
inputs.home-manager.nixosModules.home-manager
{
nixpkgs.overlays = [opencodeOverlay];
}
./hosts/nixos/${hostname}
];
}