summaryrefslogtreecommitdiffstats
path: root/lass/1systems/xerxes
diff options
context:
space:
mode:
authorlassulus <lass@xerxes.r>2019-08-27 16:55:20 +0200
committerlassulus <lass@xerxes.r>2019-08-27 16:55:20 +0200
commit247c4de76db2e367710543032276a4187d76906c (patch)
treebd89e03958a629717bfa0c0d5647f8a64a61bd7f /lass/1systems/xerxes
parentd93ed46e08d834029557379b182c9649cac175c0 (diff)
l xerxes.r: add deploy alias
Diffstat (limited to 'lass/1systems/xerxes')
-rw-r--r--lass/1systems/xerxes/config.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/lass/1systems/xerxes/config.nix b/lass/1systems/xerxes/config.nix
index c120c17d7..57871117c 100644
--- a/lass/1systems/xerxes/config.nix
+++ b/lass/1systems/xerxes/config.nix
@@ -22,6 +22,14 @@
krebs.build.host = config.krebs.hosts.xerxes;
+ environment.shellAliases = {
+ deploy = pkgs.writeDash "deploy" ''
+ set -eu
+ export SYSTEM="$1"
+ $(nix-build $HOME/sync/stockholm/lass/krops.nix --no-out-link --argstr name "$SYSTEM" -A deploy)
+ '';
+ };
+
services.xserver = {
displayManager.lightdm.autoLogin.enable = true;
displayManager.lightdm.autoLogin.user = "lass";