mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Services in each host as special arg
This commit is contained in:
parent
7ad716b827
commit
013d655626
5 changed files with 45 additions and 49 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, users, lib, pkgs, profiles, ... }:
|
||||
{ config, users, lib, pkgs, profiles, services, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
|
|
@ -6,35 +6,31 @@ with lib;
|
|||
# Imports
|
||||
|
||||
imports = [
|
||||
# profiles
|
||||
profiles.hardware.hcloud-imperative
|
||||
users.kat.server
|
||||
# host-specific services
|
||||
services.asterisk
|
||||
services.fail2ban
|
||||
services.grafana
|
||||
services.logrotate
|
||||
services.loki
|
||||
services.mail
|
||||
services.matrix
|
||||
services.murmur
|
||||
services.netdata
|
||||
services.nginx
|
||||
services.node-exporter
|
||||
services.postgres
|
||||
services.prometheus
|
||||
services.promtail
|
||||
services.radicale
|
||||
services.restic
|
||||
services.syncplay
|
||||
services.taskserver
|
||||
services.vaultwarden
|
||||
services.weechat
|
||||
services.xmpp
|
||||
services.znc
|
||||
./nixos/virtualhosts.nix
|
||||
# services
|
||||
../../services/fail2ban.nix
|
||||
../../services/logrotate.nix
|
||||
../../services/postgres.nix
|
||||
../../services/nginx.nix
|
||||
../../services/mail.nix
|
||||
../../services/radicale.nix
|
||||
../../services/xmpp.nix
|
||||
../../services/gitea
|
||||
../../services/syncplay.nix
|
||||
../../services/weechat.nix
|
||||
../../services/vaultwarden.nix
|
||||
../../services/taskserver.nix
|
||||
../../services/murmur.nix
|
||||
../../services/matrix.nix
|
||||
../../services/restic.nix
|
||||
../../services/grafana.nix
|
||||
../../services/prometheus.nix
|
||||
../../services/loki.nix
|
||||
../../services/node-exporter.nix
|
||||
../../services/promtail.nix
|
||||
../../services/netdata.nix
|
||||
../../services/znc.nix
|
||||
../../services/asterisk.nix
|
||||
];
|
||||
|
||||
# File Systems and Swap
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, profiles, users, tf, ... }:
|
||||
{ config, lib, pkgs, profiles, services, users, tf, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
|
|
@ -9,14 +9,14 @@ with lib;
|
|||
profiles.hardware.rm-310
|
||||
profiles.gui
|
||||
users.kat.guiFull
|
||||
services.node-exporter
|
||||
services.promtail
|
||||
services.netdata
|
||||
services.nginx
|
||||
services.zfs
|
||||
./nixos/jellyfin.nix
|
||||
./nixos/virtualhosts.nix
|
||||
./nixos/transmission.nix
|
||||
../../services/node-exporter.nix
|
||||
../../services/promtail.nix
|
||||
../../services/netdata.nix
|
||||
../../services/nginx.nix
|
||||
../../services/zfs.nix
|
||||
];
|
||||
|
||||
# File Systems and Swap
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ tf, config, users, pkgs, lib, profiles, sources, ... }:
|
||||
{ tf, config, users, pkgs, lib, profiles, sources, services, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
|
|
@ -14,12 +14,12 @@ in {
|
|||
profiles.gui
|
||||
profiles.vfio
|
||||
users.kat.guiFull
|
||||
../../services/zfs.nix
|
||||
../../services/restic.nix
|
||||
../../services/nginx.nix
|
||||
../../services/node-exporter.nix
|
||||
../../services/promtail.nix
|
||||
../../services/netdata.nix
|
||||
services.netdata
|
||||
services.nginx
|
||||
services.node-exporter
|
||||
services.promtail
|
||||
services.restic
|
||||
services.zfs
|
||||
./nixos/virtualhosts.nix
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, users, pkgs, lib, profiles, ... }:
|
||||
{ config, users, pkgs, lib, profiles, services, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
|
|
@ -10,12 +10,12 @@ with lib;
|
|||
profiles.gui
|
||||
profiles.laptop
|
||||
users.kat.guiFull
|
||||
../../services/zfs.nix
|
||||
../../services/restic.nix
|
||||
../../services/node-exporter.nix
|
||||
../../services/promtail.nix
|
||||
../../services/netdata.nix
|
||||
../../services/nginx.nix
|
||||
services.netdata
|
||||
services.nginx
|
||||
services.node-exporter
|
||||
services.promtail
|
||||
services.restic
|
||||
services.zfs
|
||||
];
|
||||
|
||||
# File Systems and Swap
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, sources, users, profiles, hardware, lib, config, ... }:
|
||||
{ pkgs, sources, users, profiles, services, lib, config, ... }:
|
||||
|
||||
/*
|
||||
This module:
|
||||
|
|
@ -59,7 +59,7 @@ with lib;
|
|||
];
|
||||
specialArgs = {
|
||||
inherit (config.network) nodes;
|
||||
inherit sources profiles users;
|
||||
inherit sources profiles users services;
|
||||
meta = config;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue