summaryrefslogtreecommitdiffstats
path: root/tv
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-07-14 14:09:45 +0200
committerlassulus <lassulus@lassul.us>2017-07-14 14:09:45 +0200
commitd305ed1d20b36e8db3d31631f72cc6e8e04bad0b (patch)
treecfbeb3bd7e812d4db535823c10ee96223c29267c /tv
parentcda83d7286dbbccfaa18a63afe3da1da42d91120 (diff)
parent5df8129c6d6910dc311cb73f4add9f4eecf73ce7 (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'tv')
-rw-r--r--tv/2configs/bash/default.nix10
-rw-r--r--tv/source.nix6
2 files changed, 12 insertions, 4 deletions
diff --git a/tv/2configs/bash/default.nix b/tv/2configs/bash/default.nix
index 40c0725..546b2e7 100644
--- a/tv/2configs/bash/default.nix
+++ b/tv/2configs/bash/default.nix
@@ -4,7 +4,7 @@ with import <stockholm/lib>;
{
programs.bash = {
- interactiveShellInit = ''
+ interactiveShellInit = /* sh */ ''
HISTCONTROL='erasedups:ignorespace'
HISTSIZE=65536
HISTFILESIZE=$HISTSIZE
@@ -14,7 +14,7 @@ with import <stockholm/lib>;
shopt -s no_empty_cmd_completion
complete -d cd
'';
- promptInit = ''
+ promptInit = /* sh */ ''
case $UID in
0)
PS1='\[\e[1;31m\]\w\[\e[0m\] '
@@ -32,6 +32,12 @@ with import <stockholm/lib>;
if test -n "$SSH_AGENT_PID"; then
PS1="ssh-agent[$SSH_AGENT_PID] $PS1"
fi
+
+ case ''${XMONAD_SPAWN_WORKSPACE-} in
+ stockholm)
+ cd ~/stockholm
+ ;;
+ esac
'';
};
}
diff --git a/tv/source.nix b/tv/source.nix
index dcfdb75..18733ee 100644
--- a/tv/source.nix
+++ b/tv/source.nix
@@ -17,10 +17,12 @@ in
buildbot = toString <stockholm/tv/dummy_secrets>;
tv = "/home/tv/secrets/${name}";
};
- secrets-common.file = "/home/tv/secrets/common";
stockholm.file = toString <stockholm>;
}
- (mkIf secure {
+ (mkIf (builder == "tv") {
+ secrets-common.file = "/home/tv/secrets/common";
+ })
+ (mkIf (builder == "tv" && secure) {
secrets-master.file = "/home/tv/secrets/master";
})
override