From 7c000f96fe6d1101c4a44e59c5b871524e154cfb Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 22 Sep 2020 19:11:48 -0300 Subject: Move shell aliases into vps-configuration.nix --- bash-profile.sh | 3 --- nixos-switch.sh | 1 - vps-configuration.nix | 18 ++++++++++++------ 3 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 bash-profile.sh 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 -- cgit v1.2.3