Added sops for secrets

This commit is contained in:
2024-12-26 22:18:06 +02:00
parent 4e4b537fe9
commit b25eb441f5
3 changed files with 19 additions and 19 deletions

2
.sops.yaml Normal file
View File

@@ -0,0 +1,2 @@
creation_rules:
- age: 'age1zn3jpeqducllfxlm2l57pq2kqzkg23q8jgu23lyzvfapgnkf8gmqmtchfx'

1
id_ed25519.pub Normal file
View File

@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBL2CwwK7ipJP5fMh6y6U4q4CTIIKGUX+Z4SAvG4vlSg kyren@laptop-nixos

View File

@@ -1,23 +1,20 @@
{ pkgs, ... }: {
services = {
getty.autologinUser = "root";
nginx = {
enable = true;
virtualHosts."185.170.113.195" = {
listen = [{
addr = "0.0.0.0";
port = 80;
}];
locations."/" = {
index = "index.html";
root = pkgs.writeTextDir "index.html" ''
<html>
<body>
Hello, world!
</body>
</html>
'';
};
services.nginx = {
enable = true;
virtualHosts."185.170.113.195" = {
listen = [{
addr = "0.0.0.0";
port = 80;
}];
locations."/" = {
index = "index.html";
root = pkgs.writeTextDir "index.html" ''
<html>
<body>
Hello, world!
</body>
</html>
'';
};
};
};