Add webserver service
This commit is contained in:
parent
98cf95a922
commit
40002ac76e
4 changed files with 170 additions and 4 deletions
31
flake.nix
31
flake.nix
|
@ -5,15 +5,41 @@
|
|||
nixpkgs.url = "github:nixos/nixpkgs/nixos-20.09";
|
||||
nixos-hardware.url = "github:nixos/nixos-hardware/master";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
tlaternet-webserver = {
|
||||
url = "git+https://gitea.tlater.net/tlaternet/tlaternet.git";
|
||||
inputs = {
|
||||
flake-utils.follows = "flake-utils";
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
tlaternet-templates = {
|
||||
url = "git+https://gitea.tlater.net/tlaternet/tlaternet-templates.git";
|
||||
inputs = {
|
||||
flake-utils.follows = "flake-utils";
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, nixos-hardware, flake-utils, ... }@inputs:
|
||||
{
|
||||
outputs = { nixpkgs, nixos-hardware, flake-utils, tlaternet-webserver
|
||||
, tlaternet-templates, ... }@inputs:
|
||||
let
|
||||
overlays = [
|
||||
(final: prev: {
|
||||
tlaternet-webserver =
|
||||
tlaternet-webserver.legacyPackages.${prev.system}.packages;
|
||||
tlaternet-templates =
|
||||
tlaternet-templates.legacyPackages.${prev.system}.packages;
|
||||
})
|
||||
];
|
||||
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
tlaternet = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
|
||||
modules = [
|
||||
({ ... }: { nixpkgs.overlays = overlays; })
|
||||
(import ./modules)
|
||||
|
||||
(import ./configuration)
|
||||
|
@ -27,6 +53,7 @@
|
|||
system = "x86_64-linux";
|
||||
|
||||
modules = [
|
||||
({ ... }: { nixpkgs.overlays = overlays; })
|
||||
(import ./modules)
|
||||
|
||||
(import ./configuration)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue