|
@@ -1,17 +1,16 @@
|
|
|
-{ config
|
|
|
|
|
-, lib
|
|
|
|
|
-, pkgs
|
|
|
|
|
-, outputs
|
|
|
|
|
-, ...
|
|
|
|
|
|
|
+{
|
|
|
|
|
+ config,
|
|
|
|
|
+ lib,
|
|
|
|
|
+ pkgs,
|
|
|
|
|
+ outputs,
|
|
|
|
|
+ ...
|
|
|
}:
|
|
}:
|
|
|
-let
|
|
|
|
|
- age = config.age;
|
|
|
|
|
-in
|
|
|
|
|
{
|
|
{
|
|
|
imports = [
|
|
imports = [
|
|
|
# TODO: auto-import via `outputs.modules.nixos`
|
|
# TODO: auto-import via `outputs.modules.nixos`
|
|
|
outputs.modules.global.nix-config
|
|
outputs.modules.global.nix-config
|
|
|
|
|
|
|
|
|
|
+ ./containers
|
|
|
./system
|
|
./system
|
|
|
./services
|
|
./services
|
|
|
./users
|
|
./users
|
|
@@ -46,53 +45,6 @@ in
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- # # Container runtime
|
|
|
|
|
- # virtualisation = {
|
|
|
|
|
- # docker = {
|
|
|
|
|
- # enable = true;
|
|
|
|
|
- # storageDriver = "btrfs";
|
|
|
|
|
- # autoPrune = {
|
|
|
|
|
- # enable = true;
|
|
|
|
|
- # dates = "weekly";
|
|
|
|
|
- # flags = [ "--all" "--force" "--volumes" ];
|
|
|
|
|
- # };
|
|
|
|
|
- # };
|
|
|
|
|
- # };
|
|
|
|
|
-
|
|
|
|
|
- containers.grist-latest = {
|
|
|
|
|
- autoStart = false;
|
|
|
|
|
- privateNetwork = true;
|
|
|
|
|
- hostAddress = "192.168.1.1";
|
|
|
|
|
- localAddress = "192.168.1.2";
|
|
|
|
|
- specialArgs = { inherit outputs; };
|
|
|
|
|
- config = import ./containers/grist.nix;
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
- containers.gogs = {
|
|
|
|
|
- autoStart = false;
|
|
|
|
|
- privateNetwork = true;
|
|
|
|
|
- hostAddress = "192.168.1.1";
|
|
|
|
|
- localAddress = "192.168.1.3";
|
|
|
|
|
- specialArgs = { inherit outputs; };
|
|
|
|
|
-
|
|
|
|
|
- bindMounts = {
|
|
|
|
|
- "/run/secrets/gogs-admin" = {
|
|
|
|
|
- hostPath = config.age.secrets."odin/services/gogs-admin".path;
|
|
|
|
|
- isReadOnly = true;
|
|
|
|
|
- };
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
- config = import ./containers/gogs.nix;
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
- services.caddy.virtualHosts.grist = {
|
|
|
|
|
- hostName = "grist.{$DOMAIN}";
|
|
|
|
|
- extraConfig = ''
|
|
|
|
|
- encode gzip zstd
|
|
|
|
|
- reverse_proxy 192.168.1.2:8484
|
|
|
|
|
- '';
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
programs.fish = {
|
|
programs.fish = {
|
|
|
enable = true;
|
|
enable = true;
|
|
|
vendor = {
|
|
vendor = {
|