2023-09-22 17:05:22 -04:00
|
|
|
{
|
|
|
|
description = "System flake for Linode NixOS server";
|
|
|
|
|
2024-01-14 18:24:23 -05:00
|
|
|
nixConfig = {
|
|
|
|
extra-substituters = "https://srid.cachix.org";
|
|
|
|
extra-trusted-public-keys = "srid.cachix.org-1:3clnql5gjbJNEvhA/WQp7nrZlBptwpXnUk6JAv8aB2M=";
|
|
|
|
};
|
|
|
|
|
2023-09-22 17:05:22 -04:00
|
|
|
inputs = {
|
2024-01-14 18:24:23 -05:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
|
|
|
|
|
|
emanote.url = "github:srid/emanote";
|
|
|
|
emanote.inputs.emanote-template.follows = "";
|
|
|
|
flake-parts.follows = "emanote/flake-parts";
|
|
|
|
# nixpkgs.follows = "emanote/nixpkgs";
|
2023-09-22 17:05:22 -04:00
|
|
|
};
|
|
|
|
|
2024-01-14 18:24:23 -05:00
|
|
|
outputs = inputs@{ self, nixpkgs, emanote, ... }:
|
2023-09-22 17:05:22 -04:00
|
|
|
{
|
|
|
|
nixosConfigurations.linode-nixos =
|
|
|
|
nixpkgs.lib.nixosSystem {
|
2024-01-14 18:24:23 -05:00
|
|
|
specialArgs = { inherit inputs emanote; };
|
2023-09-22 17:05:22 -04:00
|
|
|
modules = [
|
2023-09-23 13:28:13 -04:00
|
|
|
./server-config/configuration.nix
|
2023-09-22 17:05:22 -04:00
|
|
|
|
2023-09-23 13:28:13 -04:00
|
|
|
./nixos-apps
|
2023-09-22 17:05:22 -04:00
|
|
|
];
|
|
|
|
};
|
2024-01-14 02:46:14 -05:00
|
|
|
|
|
|
|
hydraJobs = {
|
|
|
|
inherit (self)
|
|
|
|
nixosConfigurations;
|
|
|
|
};
|
2023-09-22 17:05:22 -04:00
|
|
|
};
|
|
|
|
}
|