From c19dc0924481c7edf4938f5aa105f481a787a30e Mon Sep 17 00:00:00 2001 From: Aria Date: Mon, 11 Dec 2023 19:52:21 +0000 Subject: refactor(nix-personal): change folder structure --- nix-personal/profiles/common.nix | 10 ++++++++++ nix-personal/profiles/landing/default.nix | 7 +++++++ nix-personal/profiles/landing/html/index.html | 5 +++++ nix-personal/profiles/nginx.nix | 4 ++++ 4 files changed, 26 insertions(+) create mode 100644 nix-personal/profiles/common.nix create mode 100644 nix-personal/profiles/landing/default.nix create mode 100644 nix-personal/profiles/landing/html/index.html create mode 100644 nix-personal/profiles/nginx.nix (limited to 'nix-personal/profiles') diff --git a/nix-personal/profiles/common.nix b/nix-personal/profiles/common.nix new file mode 100644 index 0000000..b4e1337 --- /dev/null +++ b/nix-personal/profiles/common.nix @@ -0,0 +1,10 @@ +{...}: { + system.stateVersion = "23.11"; + + networking.domain = "girlth.ing"; + + services.openssh.enable = true; + users.users.root.openssh.authorizedKeys.keys = [ + "no-touch-required sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIPpKjZfzPN1KxVskFRnmTTCwzyCtjwcXVZc4i1rNfl9oAAAABHNzaDo= me@aria.rip" + ]; +} diff --git a/nix-personal/profiles/landing/default.nix b/nix-personal/profiles/landing/default.nix new file mode 100644 index 0000000..83fc770 --- /dev/null +++ b/nix-personal/profiles/landing/default.nix @@ -0,0 +1,7 @@ +{...}: { + imports = [../nginx.nix]; + services.nginx.virtualHosts."girlth.ing" = { + default = true; + root = ./.; + }; +} diff --git a/nix-personal/profiles/landing/html/index.html b/nix-personal/profiles/landing/html/index.html new file mode 100644 index 0000000..5d5f6be --- /dev/null +++ b/nix-personal/profiles/landing/html/index.html @@ -0,0 +1,5 @@ + + +

It works!

+ + diff --git a/nix-personal/profiles/nginx.nix b/nix-personal/profiles/nginx.nix new file mode 100644 index 0000000..60124e2 --- /dev/null +++ b/nix-personal/profiles/nginx.nix @@ -0,0 +1,4 @@ +{...}: { + networking.firewall.allowedTCPPorts = [80]; + services.nginx.enable = true; +} -- cgit v1.2.3