10
flake.nix
10
flake.nix
@@ -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}
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user