mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-18 17:11:39 +01:00
added a basic hydra
This commit is contained in:
parent
b7ecc2984d
commit
d41c30a414
4 changed files with 28 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
description = "My nix setup"; inputs = {
|
||||
description = "My nix setup";
|
||||
inputs = {
|
||||
nixpkgs = {
|
||||
url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
@ -63,7 +64,7 @@
|
|||
};
|
||||
|
||||
outputs =
|
||||
{ self
|
||||
{ self
|
||||
, nixpkgs
|
||||
, home-manager
|
||||
, nix-index-database
|
||||
|
@ -77,6 +78,7 @@
|
|||
, ...
|
||||
}@attrs: {
|
||||
packages.x86_64-linux.default = self.nixosConfigurations.iso.config.system.build.isoImage;
|
||||
hydraJobs.x86_64-linux.default = self.packages.x86_64-linux.default;
|
||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
|
||||
nixosConfigurations = {
|
||||
thinkpad = nixpkgs.lib.nixosSystem {
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
./modules/adguard
|
||||
./modules/networks
|
||||
./modules/backup
|
||||
./modules/hydra
|
||||
./modules/nextcloud
|
||||
./modules/vaultwarden
|
||||
./modules/nginx
|
||||
|
@ -21,6 +22,10 @@
|
|||
tmp.useTmpfs = true;
|
||||
};
|
||||
services.btrfs.autoScrub.enable = true;
|
||||
nix.settings = {
|
||||
cores = 3;
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
|
|
19
hosts/nuc/modules/hydra/default.nix
Normal file
19
hosts/nuc/modules/hydra/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
domain = "hydra.rfive.de";
|
||||
in
|
||||
{
|
||||
services.hydra = {
|
||||
enable = true;
|
||||
port = 4000;
|
||||
hydraURL = domain;
|
||||
notificationSender = "hydra@localhost";
|
||||
};
|
||||
services.nginx.virtualHosts."${domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.hydra.port}";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -20,7 +20,6 @@
|
|||
};
|
||||
|
||||
nix.settings = {
|
||||
# cores = 6; # don't clutter the whole system when compiling stuff
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue