diff options
author | EuAndreh <eu@euandre.org> | 2020-09-22 19:11:48 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-09-22 19:12:02 -0300 |
commit | 7c000f96fe6d1101c4a44e59c5b871524e154cfb (patch) | |
tree | c7b720775434b329eca921911037033e7e88bf8e | |
parent | Refactor: simplify configuration.nix and put everything under /data/ (diff) | |
download | toph-7c000f96fe6d1101c4a44e59c5b871524e154cfb.tar.gz toph-7c000f96fe6d1101c4a44e59c5b871524e154cfb.tar.xz |
Move shell aliases into vps-configuration.nix
-rw-r--r-- | bash-profile.sh | 3 | ||||
-rwxr-xr-x | nixos-switch.sh | 1 | ||||
-rw-r--r-- | vps-configuration.nix | 18 |
3 files changed, 12 insertions, 10 deletions
diff --git a/bash-profile.sh b/bash-profile.sh deleted file mode 100644 index c147398..0000000 --- a/bash-profile.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -alias l='ls -lahp' diff --git a/nixos-switch.sh b/nixos-switch.sh index 37dfe48..b7d4779 100755 --- a/nixos-switch.sh +++ b/nixos-switch.sh @@ -14,7 +14,6 @@ ssh "${TLD}" rm -rf "/data/favicons/" rsync -avzP favicons/ "${TLD}:/data/favicons/" scp cgit-about.html "${TLD}:/data/git/about.html" scp ci-gen-index.sh "${TLD}:/data/static/ci-logs/ci-gen-index.sh" -scp bash-profile.sh "${TLD}:.bash_profile" # Run nixos-rebuild scp vps-configuration.nix "${TLD}:/etc/nixos/configuration.nix" diff --git a/vps-configuration.nix b/vps-configuration.nix index 8122cad..cc7cf3b 100644 --- a/vps-configuration.nix +++ b/vps-configuration.nix @@ -66,12 +66,18 @@ in { interfaces.ens3.useDHCP = true; }; - environment.systemPackages = with pkgs; [ - vim - git - gitAndTools.git-annex - gotop - ]; + environment = { + systemPackages = with pkgs; [ + vim + git + gitAndTools.git-annex + gotop + ]; + + shellAliases = { + l = "ls -lahF"; + }; + }; networking.firewall.allowedTCPPorts = [ config.openSSHPort |