mirror of
https://github.com/kmein/niveum
synced 2026-03-21 04:11:07 +01:00
catullus: fix deploy
This commit is contained in:
26
deploy.nix
26
deploy.nix
@@ -10,15 +10,11 @@ let
|
|||||||
pkgs = import "${krops}/pkgs" {};
|
pkgs = import "${krops}/pkgs" {};
|
||||||
importJson = (import <nixpkgs> {}).lib.importJSON;
|
importJson = (import <nixpkgs> {}).lib.importJSON;
|
||||||
|
|
||||||
source = name: path: lib.evalSource [{
|
source = {path, other ? {}}: lib.evalSource [({
|
||||||
nixpkgs.git = {
|
nixpkgs.git = {
|
||||||
url = https://github.com/NixOS/nixpkgs-channels;
|
url = https://github.com/NixOS/nixpkgs-channels;
|
||||||
ref = (importJson ./nixpkgs.json).rev;
|
ref = (importJson ./nixpkgs.json).rev;
|
||||||
};
|
};
|
||||||
nix-writers.git = {
|
|
||||||
url = https://cgit.krebsco.de/nix-writers/;
|
|
||||||
ref = "4d0829328e885a6d7163b513998a975e60dd0a72";
|
|
||||||
};
|
|
||||||
# stockholm.git = {
|
# stockholm.git = {
|
||||||
# url = https://cgit.krebsco.de/stockholm;
|
# url = https://cgit.krebsco.de/stockholm;
|
||||||
# ref = "7e1b197dab13d024ba491c96dc959306324943c0";
|
# ref = "7e1b197dab13d024ba491c96dc959306324943c0";
|
||||||
@@ -33,24 +29,28 @@ let
|
|||||||
modules.file = toString ./modules;
|
modules.file = toString ./modules;
|
||||||
|
|
||||||
nixos-config.symlink = "system/configuration.nix";
|
nixos-config.symlink = "system/configuration.nix";
|
||||||
# secrets.pass = {
|
} // other)];
|
||||||
# dir = toString ~/.password-store;
|
|
||||||
# name = name;
|
|
||||||
# };
|
|
||||||
}];
|
|
||||||
|
|
||||||
systems.scardanelli = pkgs.krops.writeDeploy "deploy-scardanelli" {
|
systems.scardanelli = pkgs.krops.writeDeploy "deploy-scardanelli" {
|
||||||
source = source "scardanelli" ./systems/scardanelli;
|
source = source { path = ./systems/scardanelli; };
|
||||||
target = scardanelli-ssh;
|
target = scardanelli-ssh;
|
||||||
};
|
};
|
||||||
|
|
||||||
systems.homeros = pkgs.krops.writeDeploy "deploy-homeros" {
|
systems.homeros = pkgs.krops.writeDeploy "deploy-homeros" {
|
||||||
source = source "homeros" ./systems/homeros;
|
source = source { path = ./systems/homeros; };
|
||||||
target = homeros-ssh;
|
target = homeros-ssh;
|
||||||
};
|
};
|
||||||
|
|
||||||
systems.catullus = pkgs.krops.writeDeploy "deploy-catullus" {
|
systems.catullus = pkgs.krops.writeDeploy "deploy-catullus" {
|
||||||
source = source "catullus" ./systems/catullus;
|
source = source {
|
||||||
|
path = ./systems/catullus;
|
||||||
|
other = {
|
||||||
|
secrets.pass = {
|
||||||
|
dir = toString ~/.password-store;
|
||||||
|
name = "catullus";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
target = catullus-ssh;
|
target = catullus-ssh;
|
||||||
};
|
};
|
||||||
in systems // {
|
in systems // {
|
||||||
|
|||||||
@@ -23,15 +23,15 @@ in {
|
|||||||
script = ''${telegram-betacode}/bin/telegram-betacode'';
|
script = ''${telegram-betacode}/bin/telegram-betacode'';
|
||||||
serviceConfig.Restart = "always";
|
serviceConfig.Restart = "always";
|
||||||
};
|
};
|
||||||
systemd.services.telegram-horoscope = {
|
# systemd.services.telegram-horoscope = {
|
||||||
wantedBy = [ "multi-user.target" ];
|
# wantedBy = [ "multi-user.target" ];
|
||||||
description = "Telegram bot for generating horoscope charts";
|
# description = "Telegram bot for generating horoscope charts";
|
||||||
environment.TELEGRAM_HOROSCOPE_TOKEN = builtins.readFile <secrets/telegram-horoscope.token>;
|
# environment.TELEGRAM_HOROSCOPE_TOKEN = builtins.readFile <secrets/telegram-horoscope.token>;
|
||||||
environment.GOOGLE_MAPS_API_KEY = builtins.readFile <secrets/google-maps.api-key>;
|
# environment.GOOGLE_MAPS_API_KEY = builtins.readFile <secrets/google-maps.api-key>;
|
||||||
enable = true;
|
# enable = true;
|
||||||
script = ''${telegram-horoscope}/bin/telegram-horoscope'';
|
# script = ''${telegram-horoscope}/bin/telegram-horoscope'';
|
||||||
serviceConfig.Restart = "always";
|
# serviceConfig.Restart = "always";
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user