Merge branch 'main' of github.com:asosnovsky/nixos-setup
This commit is contained in:
commit
47638d5f8b
4 files changed
+18
-42
No files matched your search
+5
-33
@@ -1,6 +1,11 @@
|
||||
{ user }:
|
||||
{ pkgs, lib, config, ... }: {
|
||||
imports = [ ./hl-minipc1.hardware-configuration.nix ];
|
||||
# Nix Stores
|
||||
services.nix-serve = {
|
||||
enable = true;
|
||||
secretKeyFile = "/var/keys/cache-priv-key.pem";
|
||||
};
|
||||
# firmware updater
|
||||
services.fwupd.enable = true;
|
||||
# Bootloader.
|
||||
@@ -29,38 +34,5 @@
|
||||
listenAddress = "0.0.0.0";
|
||||
enableDelete = true;
|
||||
};
|
||||
virtualisation.oci-containers = {
|
||||
backend = "docker";
|
||||
containers = {
|
||||
myevents-app = {
|
||||
autoStart = true;
|
||||
image = "localhost:5001/asosnovsky/myevents";
|
||||
extraOptions = [ "--gpus" "all" ];
|
||||
ports = [ "8000:80" ];
|
||||
cmd = [ "app" ];
|
||||
environmentFiles = [
|
||||
"/mnt/Data/myevents/app.env"
|
||||
];
|
||||
dependsOn = [ "myevents-db" ];
|
||||
};
|
||||
myevents-cron = {
|
||||
autoStart = true;
|
||||
image = "localhost:5001/asosnovsky/myevents";
|
||||
cmd = [ "cron" ];
|
||||
environmentFiles = [
|
||||
"/mnt/Data/myevents/app.env"
|
||||
];
|
||||
dependsOn = [ "myevents-db" ];
|
||||
};
|
||||
myevents-db = {
|
||||
autoStart = true;
|
||||
image = "docker.io/postgres";
|
||||
hostname = "myevents-db";
|
||||
environmentFiles = [
|
||||
"/mnt/Data/myevents/db.env"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user