From a7703b258aa3c8d30543a7de41ac12f827bd845a Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 13 Oct 2019 12:40:58 +0200 Subject: Choose EMAIL via home-manager --- user/settings/base.nix | 3 ++- user/settings/zsh.nix | 30 ------------------------------ 2 files changed, 2 insertions(+), 31 deletions(-) (limited to 'user/settings') diff --git a/user/settings/base.nix b/user/settings/base.nix index cc83cb47..c78fdc44 100644 --- a/user/settings/base.nix +++ b/user/settings/base.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, lib, pkgs, ... }: { # Let Home Manager install and manage itself. @@ -6,6 +6,7 @@ manual = { html.enable = true; }; + home.sessionVariables.EMAIL = lib.mkDefault "alan@alanpearce.eu"; home.packages = with pkgs; [ pv fd diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix index dd24b663..eb606fc9 100644 --- a/user/settings/zsh.nix +++ b/user/settings/zsh.nix @@ -258,29 +258,6 @@ in }; envExtra = '' - case $OSTYPE in - darwin*) - os=darwin - ;; - linux-gnu) - os=linux - ;; - freebsd*) - os=freebsd - ;; - *) - os=unknown - ;; - esac - - case $MACHTYPE in - *64) - arch=amd64 - ;; - *) - arch=386 - ;; - esac if [[ ''${path[(I)$HOME/.local/bin ]} ]] then path+=($HOME/.local/bin) @@ -290,13 +267,6 @@ in then path+=($HOME/go/bin) fi - - if [[ $HOST =~ satoshi ]] - then - EMAIL=alan@satoshipay.io - else - EMAIL=alan@alanpearce.eu - fi ''; initExtra = '' -- cgit 1.4.1