Skip to content

Commit

Permalink
Nixinate was causing more trouble than it saved
Browse files Browse the repository at this point in the history
  • Loading branch information
noonio committed Nov 18, 2024
1 parent 6ab48f2 commit 65f7dc6
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 68 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This is the system image repository for the hydra-explorer service.
## Deployment

```sh
nix run .#apps.x86_64-linux.nixinate.hydra-explorer
nixos-rebuild switch --target-host [email protected] --flake .#hydra-explorer --use-remote-sudo
```

## Testing locally
Expand Down
35 changes: 0 additions & 35 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 17 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
inputs.nixpkgs.follows = "nixpkgs";
};

nixinate.url = "github:MatthewCroughan/nixinate";

nix-npm-buildpackage.url = "github:serokell/nix-npm-buildpackage";

nixpkgs.follows = "haskell-nix/nixpkgs";
Expand Down Expand Up @@ -68,7 +66,23 @@

flake = _: {
nixosConfigurations.hydra-explorer =
import ./nix/hydra-explorer-aws.nix { inherit inputs; };
inputs.nixpkgs.lib.nixosSystem
{
system = "x86_64-linux";
specialArgs = inputs;
modules = [
{
imports = [
"${inputs.nixpkgs}/nixos/modules/virtualisation/amazon-image.nix"
(import ./nix/hydra-explorer-configuration.nix {
cardano-node-module = inputs.cardano-node.nixosModules.cardano-node;
hydra-explorer = inputs.self.packages.x86_64-linux.hydra-explorer;
hydra-explorer-web = inputs.self.packages.x86_64-linux.hydra-explorer-web;
})
];
}
];
};
};

outputs = import ./nix/outputs.nix;
Expand Down
27 changes: 0 additions & 27 deletions nix/hydra-explorer-aws.nix

This file was deleted.

2 changes: 0 additions & 2 deletions nix/outputs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ let
in
[
{
apps = inputs.nixinate.nixinate."x86_64-linux" inputs.self;

packages.hydra-explorer-web = import ../hydra-explorer/web/hydra-explorer.nix { inherit pkgs; };

# A place to hack on the image to see how it works.
Expand Down

0 comments on commit 65f7dc6

Please sign in to comment.