From d4609b61881781095176ee1b53c7e71b8bf5fb63 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 14 Jul 2017 01:22:25 +0200 Subject: tv bash: cd to repo at stockholm workspace --- tv/2configs/bash/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tv/2configs/bash/default.nix b/tv/2configs/bash/default.nix index 40c0725ed..31f744ba6 100644 --- a/tv/2configs/bash/default.nix +++ b/tv/2configs/bash/default.nix @@ -32,6 +32,12 @@ with import ; if test -n "$SSH_AGENT_PID"; then PS1="ssh-agent[$SSH_AGENT_PID] $PS1" fi + + case ''${XMONAD_SPAWN_WORKSPACE-} in + stockholm) + cd ~/stockholm + ;; + esac ''; }; } -- cgit v1.2.3 From 02252bdaf0ff41472550fb8470410e901938bb7a Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 14 Jul 2017 01:45:10 +0200 Subject: tv bash: add /* sh */ --- tv/2configs/bash/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tv/2configs/bash/default.nix b/tv/2configs/bash/default.nix index 31f744ba6..546b2e7b7 100644 --- a/tv/2configs/bash/default.nix +++ b/tv/2configs/bash/default.nix @@ -4,7 +4,7 @@ with import ; { programs.bash = { - interactiveShellInit = '' + interactiveShellInit = /* sh */ '' HISTCONTROL='erasedups:ignorespace' HISTSIZE=65536 HISTFILESIZE=$HISTSIZE @@ -14,7 +14,7 @@ with import ; shopt -s no_empty_cmd_completion complete -d cd ''; - promptInit = '' + promptInit = /* sh */ '' case $UID in 0) PS1='\[\e[1;31m\]\w\[\e[0m\] ' -- cgit v1.2.3 From deecf14af29062f161149a832646cdf1e0c5b0dc Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 14 Jul 2017 02:24:57 +0200 Subject: l buildbot: shared -> krebs --- lass/2configs/buildbot-standalone.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lass/2configs/buildbot-standalone.nix b/lass/2configs/buildbot-standalone.nix index 6c2a92c08..86e7880db 100644 --- a/lass/2configs/buildbot-standalone.nix +++ b/lass/2configs/buildbot-standalone.nix @@ -80,6 +80,9 @@ in { ] ) + for i in [ "test-all-krebs-modules", "test-centos7", "test-minimal-deploy", "wolf" ]: + build_host("krebs", i) + for i in [ "mors", "uriel", "shodan", "icarus", "cloudkrebs", "echelon", "dishfire", "prism" ]: build_host("lass", i) @@ -89,9 +92,6 @@ in { for i in [ "hiawatha", "onondaga" ]: build_host("nin", i) - for i in [ "test-minimal-deploy", "test-all-krebs-modules", "wolf", "test-centos7" ]: - build_host("shared", i) - for i in [ "alnus", "mu", "nomic", "wu", "xu", "zu" ]: build_host("tv", i) -- cgit v1.2.3 From b3d3c5ff04c51350389b0fd74239e0069f9c7267 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 14 Jul 2017 03:40:58 +0200 Subject: tv source: no secret-{common,master} when dummy_secrets --- tv/source.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tv/source.nix b/tv/source.nix index dcfdb7552..18733ee5c 100644 --- a/tv/source.nix +++ b/tv/source.nix @@ -17,10 +17,12 @@ in buildbot = toString ; tv = "/home/tv/secrets/${name}"; }; - secrets-common.file = "/home/tv/secrets/common"; stockholm.file = toString ; } - (mkIf secure { + (mkIf (builder == "tv") { + secrets-common.file = "/home/tv/secrets/common"; + }) + (mkIf (builder == "tv" && secure) { secrets-master.file = "/home/tv/secrets/master"; }) override -- cgit v1.2.3 From c113f235ccfe62c992bf28692b999020c92ef275 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 14 Jul 2017 03:45:05 +0200 Subject: shell test: dummy_secrets=true before populate --- shell.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index f0d949da1..8c224a5f8 100644 --- a/shell.nix +++ b/shell.nix @@ -19,12 +19,13 @@ let cmds.test = pkgs.writeDash "cmds.test" /* sh */ '' set -efu + export dummy_secrets=true + command=test . ${init.args} \test -n "''${user-}" || user=$LOGNAME . ${init.env} - export dummy_secrets=true exec ${utils.build} config.system.build.toplevel ''; -- cgit v1.2.3