Added sops for secrets
This commit is contained in:
2
.sops.yaml
Normal file
2
.sops.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
creation_rules:
|
||||
- age: 'age1zn3jpeqducllfxlm2l57pq2kqzkg23q8jgu23lyzvfapgnkf8gmqmtchfx'
|
||||
1
id_ed25519.pub
Normal file
1
id_ed25519.pub
Normal file
@@ -0,0 +1 @@
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBL2CwwK7ipJP5fMh6y6U4q4CTIIKGUX+Z4SAvG4vlSg kyren@laptop-nixos
|
||||
@@ -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>
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user