fix(nix): add timezone and nginx extra config
This commit is contained in:
parent
ebd0fce27f
commit
e8e5d6e705
1 changed files with 16 additions and 3 deletions
|
@ -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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue