diff options
author | Aria <me@aria.rip> | 2023-12-11 19:52:21 +0000 |
---|---|---|
committer | Aria <me@aria.rip> | 2023-12-11 19:52:21 +0000 |
commit | c19dc0924481c7edf4938f5aa105f481a787a30e (patch) | |
tree | c1dc11ac722136d3a2e929b79fa5461ba603b83f /nix-personal/profiles | |
parent | 688b6527809869465c75d9cb3413d8bcce7aff68 (diff) |
refactor(nix-personal): change folder structure
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; +} |