diff options
Diffstat (limited to 'nix-personal/profiles')
-rw-r--r-- | nix-personal/profiles/common.nix | 10 | ||||
-rw-r--r-- | nix-personal/profiles/landing/default.nix | 7 | ||||
-rw-r--r-- | nix-personal/profiles/landing/html/index.html | 5 | ||||
-rw-r--r-- | nix-personal/profiles/nginx.nix | 4 |
4 files changed, 26 insertions, 0 deletions
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 @@ +<html> + <body> + <h1>It works!</h1> + </body> +</html> 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; +} |