From 01e451aae06ff9947c24b5a076d12599932eb0c5 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Mon, 20 Jan 2020 19:24:49 +1300 Subject: [PATCH] suspend is default for desktops now --- configs/workhorse/jenkins.nix | 17 ++++------------- system/desktop/suspend.nix | 4 ++-- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/configs/workhorse/jenkins.nix b/configs/workhorse/jenkins.nix index 68aff5d..746a818 100644 --- a/configs/workhorse/jenkins.nix +++ b/configs/workhorse/jenkins.nix @@ -91,19 +91,6 @@ in { } ]) - (job "deploy-terranix" { - url = "ssh://gogs@workhorse.private:2222/terranix/terranix.org.git"; - credentialsId = gogs-id; - } [ - { "build" = [ "nix-shell --run build" ]; } - { - "publish" = [{ - script = "nix-shell --run publish"; - credentialsId = sshSputnik; - }]; - } - ]) - (job "sync-retiolum" { url = "git@github.com:krebs/retiolum.git"; credentialsId = github-id; @@ -207,6 +194,10 @@ in { "ssh://gogs@workhorse.private:2222/terranix/terranix.git" "git@github.com:mrVanDalo/terranix.git") + (sync-to-github "sync-terranix.org" + "ssh://gogs@workhorse.private:2222/terranix/terranix.org.git" + "git@github.com:mrVanDalo/terranix-website.git") + (sync-to-github "sync-terranix-hcloud" "ssh://gogs@workhorse.private:2222/terranix/hcloud.git" "git@github.com:mrVanDalo/terranix-hcloud.git") diff --git a/system/desktop/suspend.nix b/system/desktop/suspend.nix index 9936d56..7ad8749 100644 --- a/system/desktop/suspend.nix +++ b/system/desktop/suspend.nix @@ -1,4 +1,4 @@ -{ pkgs, config, ... }: +{ pkgs, config, lib, ... }: { systemd.services.screenlock = { @@ -22,6 +22,6 @@ }; }; - services.logind.lidSwitch = "ignore"; + services.logind.lidSwitch = "suspend"; }