This commit is contained in:
xqtc 2024-07-24 14:11:31 +02:00
parent 09b1fe8a30
commit e42b089280
4 changed files with 41 additions and 51 deletions

View file

@ -69,17 +69,17 @@
}; };
"seraphim" = lib.nixosSystem { "seraphim" = lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [./hosts/x86_64-linux/seraphim ]; modules = [./hosts/x86_64-linux/seraphim];
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};
}; };
"lilith" = lib.nixosSystem { "lilith" = lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [./hosts/x86_64-linux/lilith ]; modules = [./hosts/x86_64-linux/lilith];
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};
}; };
"lambda" = lib.nixosSystem { "lambda" = lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [./hosts/x86_64-linux/lambda ]; modules = [./hosts/x86_64-linux/lambda];
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};
}; };
"beleth" = lib.nixosSystem { "beleth" = lib.nixosSystem {
@ -89,7 +89,7 @@
}; };
"alastor" = lib.nixosSystem { "alastor" = lib.nixosSystem {
system = "aarch64-linux"; system = "aarch64-linux";
modules = [./hosts/aarch64-linux/alastor {nixpkgs.overlays = [inputs.nixos-aarch64-widevine.overlays.default];} ]; modules = [./hosts/aarch64-linux/alastor {nixpkgs.overlays = [inputs.nixos-aarch64-widevine.overlays.default];}];
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};
}; };
}; };

View file

@ -68,7 +68,7 @@
}; };
}; };
}; };
rustaceanvim.settings.server.default_settings.rust-analyzer.diagnostics.disabled = [ "inactive-code" ]; rustaceanvim.settings.server.default_settings.rust-analyzer.diagnostics.disabled = ["inactive-code"];
lsp = { lsp = {
enable = true; enable = true;
inlayHints = true; inlayHints = true;

View file

@ -14,6 +14,7 @@ with lib; {
./transmission.nix ./transmission.nix
./fail2ban.nix ./fail2ban.nix
./lanrarari.nix ./lanrarari.nix
./hydra.nix
./uptime.nix ./uptime.nix
./networking.nix ./networking.nix
./git.nix ./git.nix
@ -29,44 +30,6 @@ with lib; {
services.caddy = { services.caddy = {
enable = true; enable = true;
email = "xqtc@tutanota.com"; email = "xqtc@tutanota.com";
# configFile = pkgs.writeText "Caddyfile" ''
# heroin.trade {
# root * /var/www/website/public/
# handle_errors {
# rewrite * /404.html
# file_server
# }
# file_server
# }
# syncthing.heroin.trade {
# reverse_proxy http://localhost:8384 {
# header_up Host {upstream_hostport}
# }
# }
# demos.heroin.trade {
# root * /var/www/demos/
# file_server browse
# }
# git.heroin.trade {
# reverse_proxy http://localhost:3002
# }
#
# jellyfin.heroin.trade {
# reverse_proxy http://127.0.0.1:8096
# }
#
# calibre.heroin.trade {
# reverse_proxy http://localhost:3000
# }
#
# grafana.heroin.trade {
# reverse_proxy http://127.0.0.1:2342
# }
#
# uptime.heroin.trade {
# reverse_proxy 127.0.0.1:3001
# }
# '';
virtualHosts = { virtualHosts = {
"heroin.trade" = { "heroin.trade" = {
extraConfig = '' extraConfig = ''
@ -78,6 +41,11 @@ with lib; {
file_server file_server
''; '';
}; };
"hydra.heroin.trade" = {
extraConfig = ''
reverse_proxy http://localhost:${builtins.toString config.services.hydra.port}
'';
};
"cheats-rs.heroin.trade" = { "cheats-rs.heroin.trade" = {
extraConfig = '' extraConfig = ''
root * /var/www/cheats-rs/public/ root * /var/www/cheats-rs/public/

View file

@ -0,0 +1,22 @@
{
config,
lib,
...
}: {
services.hydra = {
enable = true;
hydraURL = "https://hydra.heroin.trade";
port = 3003;
useSubstitutes = true;
notificationSender = "hydra@localhost";
};
nix.buildMachines = [
{
hostName = "localhost";
system = "x86_64-linux";
supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"];
maxJobs = 8;
}
];
}