fix(nix): add timezone and nginx extra config

This commit is contained in:
Lucas Sta Maria 2025-08-12 14:40:14 +00:00
parent ebd0fce27f
commit e8e5d6e705
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -1,13 +1,17 @@
{ inputs, config, pkgs, lib, ... }: {
imports = [ ./hw.nix ];
time.timeZone = "America/New_York";
# Generated by nixos-infect
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
networking.hostName = "chaewon-nixos-ash-1";
networking.domain = "";
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBGpnPYxrYnmtFaf591Q80FQPb01dqTwlH58V6uRa7Fi'' ];
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBGpnPYxrYnmtFaf591Q80FQPb01dqTwlH58V6uRa7Fi"
];
# Generated by nixos-infect
networking = {
@ -78,7 +82,9 @@
extraGroups = [ "wheel" "docker" ];
packages = with pkgs; [ ];
shell = pkgs.fish;
openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBGpnPYxrYnmtFaf591Q80FQPb01dqTwlH58V6uRa7Fi''];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBGpnPYxrYnmtFaf591Q80FQPb01dqTwlH58V6uRa7Fi"
];
};
programs.fish.enable = true;
@ -89,7 +95,14 @@
"files.priime.dev" = {
forceSSL = true;
enableACME = true;
locations."/" = { root = "/var/lib/files.priime.dev"; };
locations."/" = {
root = "/var/lib/files.priime.dev";
extraConfig = ''
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
'';
};
};
};
};