fix(nix): add acme and nginx simple configuration
This commit is contained in:
parent
011bda8d02
commit
ebd0fce27f
1 changed files with 18 additions and 0 deletions
|
@ -51,6 +51,13 @@
|
||||||
ATTR{address}=="92:00:06:59:7a:8b", NAME="eth0"
|
ATTR{address}=="92:00:06:59:7a:8b", NAME="eth0"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
security.acme = {
|
||||||
|
acceptTerms = true;
|
||||||
|
defaults.email = "lucas@priime.dev";
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
i18n.extraLocaleSettings = {
|
i18n.extraLocaleSettings = {
|
||||||
|
@ -76,6 +83,17 @@
|
||||||
|
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
|
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts = {
|
||||||
|
"files.priime.dev" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = { root = "/var/lib/files.priime.dev"; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
home-manager.users.priime = { pkgs, ... }: { imports = [ ./home.nix ]; };
|
home-manager.users.priime = { pkgs, ... }: { imports = [ ./home.nix ]; };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue