Fuck around with secrets

This commit is contained in:
Jimbo 2024-08-24 22:32:58 -04:00
parent 0d4700e56f
commit f8e1f5cd1d
16 changed files with 16 additions and 16 deletions

View file

@ -1,7 +1,7 @@
{
# Enable git and config
programs.git = let
secrets = import ../../nixos/common/secrets.nix;
secrets = import ../../../secrets.nix;
in {
enable = true;
lfs.enable = true;

View file

@ -1,6 +1,6 @@
{
security.acme = let
secrets = import ../common/secrets.nix;
secrets = import ../../../secrets.nix;
in {
acceptTerms = true;
defaults.email = secrets.jimEmail;

View file

@ -1,7 +1,7 @@
{pkgs, ...}: {
# DDClient for Dynamic IPs
services.ddclient = let
secrets = import ../common/secrets.nix;
secrets = import ../../../secrets.nix;
in {
enable = true;
protocol = "cloudflare";

View file

@ -1,7 +1,7 @@
{
# Configure the Element web server
nixpkgs.config.element-web.conf = let
secrets = import ../common/secrets.nix;
secrets = import ../../../secrets.nix;
in {
default_server_config = {
"m.homeserver" = {

View file

@ -4,8 +4,8 @@
# Configure firewall
networking = let
ips = import ../common/ips.nix;
secrets = import ../common/secrets.nix;
ips = import ../modules/ips.nix;
secrets = import ../../../secrets.nix;
in {
firewall = {
allowPing = false;

View file

@ -1,6 +1,6 @@
{
services.gitea = let
secrets = import ../common/secrets.nix;
secrets = import ../../../secrets.nix;
in {
enable = true;
settings = {

View file

@ -1,6 +1,6 @@
{
services.lemmy = let
secrets = import ../common/secrets.nix;
secrets = import ../../../secrets.nix;
in {
enable = true;
nginx.enable = true;

View file

@ -1,5 +1,5 @@
{pkgs, ...}: let
secrets = import ../common/secrets.nix;
secrets = import ../../../secrets.nix;
in rec {
# Mail server
mailserver = rec {

View file

@ -1,6 +1,6 @@
{pkgs, ...}: {
services.mastodon = let
secrets = import ../common/secrets.nix;
secrets = import ../../../secrets.nix;
in {
enable = true;
localDomain = "social.${secrets.jimDomain}";

View file

@ -1,5 +1,5 @@
{pkgs, ...}: let
secrets = import ../common/secrets.nix;
secrets = import ../../../secrets.nix;
in {
services.nextcloud = {
enable = true;

View file

@ -1,7 +1,7 @@
{
# NFS server
services.nfs.server = let
ips = import ../common/ips.nix;
ips = import ../modules/ips.nix;
in {
enable = true;
exports = ''

View file

@ -1,6 +1,6 @@
{pkgs, ...}: {
services.nginx = let
secrets = import ../common/secrets.nix;
secrets = import ../../../secrets.nix;
in {
enable = true;
package = (pkgs.nginx.override {

View file

@ -1,6 +1,6 @@
{pkgs, lib, ...}: {
services.pufferpanel = let
secrets = import ../common/secrets.nix;
secrets = import ../../../secrets.nix;
in {
enable = true;
environment = {

View file

@ -1,6 +1,6 @@
{pkgs, config, ...}: {
services = let
secrets = import ../common/secrets.nix;
secrets = import ../../../secrets.nix;
in {
# Synapse Matrix server
matrix-synapse = with config.services.coturn; {

View file

@ -1,6 +1,6 @@
{
services.vaultwarden = let
secrets = import ../common/secrets.nix;
secrets = import ../../../secrets.nix;
in {
enable = true;
config = {