From 247c4de76db2e367710543032276a4187d76906c Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 27 Aug 2019 16:55:20 +0200 Subject: l xerxes.r: add deploy alias --- lass/1systems/xerxes/config.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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"; -- cgit v1.2.3