Remove sops & add acs service
This commit is contained in:
+29
-9
@@ -12,6 +12,11 @@
|
||||
|
||||
networking.hostName = "syedm";
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
# Configure network connections interactively with nmcli or nmtui.
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
@@ -47,7 +52,7 @@
|
||||
# List packages installed in system profile.
|
||||
# You can use https://search.nixos.org/ to find more packages (and options).
|
||||
environment.systemPackages = with pkgs; [
|
||||
sops
|
||||
nodejs
|
||||
age
|
||||
eza
|
||||
yazi
|
||||
@@ -60,13 +65,6 @@
|
||||
git
|
||||
];
|
||||
|
||||
# Secrets file
|
||||
sops.age.keyFile = "/home/me/.config/sops/age/keys.txt";
|
||||
sops.secrets."main.env" = {
|
||||
sopsFile = ../secrets/main.env;
|
||||
format = "dotenv";
|
||||
};
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
|
||||
@@ -78,6 +76,9 @@
|
||||
virtualHosts."git.syedm.dev".extraConfig = ''
|
||||
reverse_proxy localhost:3000
|
||||
'';
|
||||
virtualHosts."acs.syedm.dev".extraConfig = ''
|
||||
reverse_proxy localhost:3709
|
||||
'';
|
||||
};
|
||||
|
||||
services.gitea = {
|
||||
@@ -100,7 +101,26 @@
|
||||
session.COOKIE_SECURE = true;
|
||||
log.LEVEL = "Info";
|
||||
};
|
||||
lfs.enable = true;
|
||||
};
|
||||
|
||||
systemd.services.msjd = {
|
||||
description = "Msjd";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
WorkingDirectory = "/home/me/main/msjd";
|
||||
ExecStart = "${pkgs.nodejs}/bin/node index.mjs";
|
||||
|
||||
User = "me";
|
||||
Restart = "always";
|
||||
RestartSec = 3;
|
||||
|
||||
Environment = [
|
||||
"NODE_ENV=production"
|
||||
"PORT=3709"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Open ports in the firewall.
|
||||
|
||||
Reference in New Issue
Block a user