apply nixpkgs-fmt and remove unnecessary comments
This commit is contained in:
parent
48e3a85c82
commit
f499d48194
3 changed files with 28 additions and 42 deletions
|
@ -1,12 +1,8 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page, on
|
||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
|
@ -99,16 +95,12 @@
|
|||
proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict";
|
||||
'';
|
||||
|
||||
virtualHosts = let
|
||||
base = {
|
||||
virtualHosts = {
|
||||
"git.katherina.rocks" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://[::1]:3000/";
|
||||
};
|
||||
proxy = port: {
|
||||
locations."/".proxyPass = "http://[::1]:${toString(port)}/";
|
||||
};
|
||||
in {
|
||||
"git.katherina.rocks" = base // proxy 3000;
|
||||
};
|
||||
};
|
||||
security.acme = {
|
||||
|
@ -139,12 +131,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
# Copy the NixOS configuration file and link it from the resulting system
|
||||
# (/run/current-system/configuration.nix). This is useful in case you
|
||||
# accidentally delete configuration.nix.
|
||||
# system.copySystemConfiguration = true;
|
||||
|
||||
system.stateVersion = "23.11"; # Did you read the comment?
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue