diff options
author | lassulus <lass@xerxes.r> | 2019-08-27 16:55:20 +0200 |
---|---|---|
committer | lassulus <lass@xerxes.r> | 2019-08-27 16:55:20 +0200 |
commit | 247c4de76db2e367710543032276a4187d76906c (patch) | |
tree | bd89e03958a629717bfa0c0d5647f8a64a61bd7f /lass/1systems/xerxes | |
parent | d93ed46e08d834029557379b182c9649cac175c0 (diff) |
l xerxes.r: add deploy alias
Diffstat (limited to 'lass/1systems/xerxes')
-rw-r--r-- | lass/1systems/xerxes/config.nix | 8 |
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"; |