mirror of
https://github.com/kmein/niveum
synced 2026-03-23 13:21:06 +01:00
ssh: fix niveum systems; cloud: start on network online; niveum-deploy
This commit is contained in:
@@ -139,11 +139,9 @@
|
|||||||
(pkgs.unstable.writers.writeDashBin "niveum-deploy" ''
|
(pkgs.unstable.writers.writeDashBin "niveum-deploy" ''
|
||||||
NIVEUM_DIR=/home/kfm/prog/git/niveum
|
NIVEUM_DIR=/home/kfm/prog/git/niveum
|
||||||
|
|
||||||
for system in "$@"; do
|
[ $# -eq 1 ] || echo >&2 "Usage: niveum-deploy SYSTEM"
|
||||||
eval $(nix-build --no-out-link "$NIVEUM_DIR/deploy.nix" -A "$system") &
|
|
||||||
done
|
|
||||||
|
|
||||||
wait
|
eval $(nix-build --no-out-link "$NIVEUM_DIR/deploy.nix" -A "$1")
|
||||||
'')
|
'')
|
||||||
(pkgs.unstable.writers.writeDashBin "niveum-update" ''
|
(pkgs.unstable.writers.writeDashBin "niveum-update" ''
|
||||||
NIVEUM_DIR=/home/kfm/prog/git/niveum
|
NIVEUM_DIR=/home/kfm/prog/git/niveum
|
||||||
|
|||||||
@@ -30,17 +30,17 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
matchBlocks = {
|
matchBlocks = {
|
||||||
scardanelli = {
|
scardanelli = {
|
||||||
hostname = "scardanelli.local";
|
hostname = "scardanelli.r";
|
||||||
user = "kfm";
|
user = "kfm";
|
||||||
port = sshPort;
|
port = sshPort;
|
||||||
};
|
};
|
||||||
homeros = {
|
homeros = {
|
||||||
hostname = "homeros.local";
|
hostname = "homeros.r";
|
||||||
user = "kfm";
|
user = "kfm";
|
||||||
port = sshPort;
|
port = sshPort;
|
||||||
};
|
};
|
||||||
catullus = {
|
catullus = {
|
||||||
hostname = "catullus.local";
|
hostname = "catullus.r";
|
||||||
user = "root";
|
user = "root";
|
||||||
};
|
};
|
||||||
menstruation-logs = {
|
menstruation-logs = {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ in
|
|||||||
|
|
||||||
systemd.services.google-drive = {
|
systemd.services.google-drive = {
|
||||||
description = "Google Drive synchronisation service";
|
description = "Google Drive synchronisation service";
|
||||||
wants = [ "network-online.target" ];
|
wantedBy = [ "network-online.target" ];
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.grive2}/bin/grive -p ${cfg.directory}
|
${pkgs.grive2}/bin/grive -p ${cfg.directory}
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ in {
|
|||||||
|
|
||||||
systemd.user.services.todoist-sync = {
|
systemd.user.services.todoist-sync = {
|
||||||
enable = cfg.enable;
|
enable = cfg.enable;
|
||||||
wants = [ "network-online.target" ];
|
wantedBy = [ "network-online.target" ];
|
||||||
startAt = "*:0/5";
|
startAt = "*:0/5";
|
||||||
script = ''${todoist}/bin/todoist sync'';
|
script = ''${todoist}/bin/todoist sync'';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user