Fuck around with secrets
This commit is contained in:
parent
0d4700e56f
commit
f8e1f5cd1d
|
@ -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;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
security.acme = let
|
||||
secrets = import ../common/secrets.nix;
|
||||
secrets = import ../../../secrets.nix;
|
||||
in {
|
||||
acceptTerms = true;
|
||||
defaults.email = secrets.jimEmail;
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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" = {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
services.gitea = let
|
||||
secrets = import ../common/secrets.nix;
|
||||
secrets = import ../../../secrets.nix;
|
||||
in {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
services.lemmy = let
|
||||
secrets = import ../common/secrets.nix;
|
||||
secrets = import ../../../secrets.nix;
|
||||
in {
|
||||
enable = true;
|
||||
nginx.enable = true;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{pkgs, ...}: let
|
||||
secrets = import ../common/secrets.nix;
|
||||
secrets = import ../../../secrets.nix;
|
||||
in rec {
|
||||
# Mail server
|
||||
mailserver = rec {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{pkgs, ...}: {
|
||||
services.mastodon = let
|
||||
secrets = import ../common/secrets.nix;
|
||||
secrets = import ../../../secrets.nix;
|
||||
in {
|
||||
enable = true;
|
||||
localDomain = "social.${secrets.jimDomain}";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{pkgs, ...}: let
|
||||
secrets = import ../common/secrets.nix;
|
||||
secrets = import ../../../secrets.nix;
|
||||
in {
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
# NFS server
|
||||
services.nfs.server = let
|
||||
ips = import ../common/ips.nix;
|
||||
ips = import ../modules/ips.nix;
|
||||
in {
|
||||
enable = true;
|
||||
exports = ''
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{pkgs, ...}: {
|
||||
services.nginx = let
|
||||
secrets = import ../common/secrets.nix;
|
||||
secrets = import ../../../secrets.nix;
|
||||
in {
|
||||
enable = true;
|
||||
package = (pkgs.nginx.override {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{pkgs, lib, ...}: {
|
||||
services.pufferpanel = let
|
||||
secrets = import ../common/secrets.nix;
|
||||
secrets = import ../../../secrets.nix;
|
||||
in {
|
||||
enable = true;
|
||||
environment = {
|
||||
|
|
|
@ -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; {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
services.vaultwarden = let
|
||||
secrets = import ../common/secrets.nix;
|
||||
secrets = import ../../../secrets.nix;
|
||||
in {
|
||||
enable = true;
|
||||
config = {
|
||||
|
|
Loading…
Reference in a new issue