all repos — nixfiles @ a7703b258aa3c8d30543a7de41ac12f827bd845a

System and user configuration, managed by nix and home-manager

Choose EMAIL via home-manager
Alan Pearce alan@alanpearce.eu
Sun, 13 Oct 2019 12:40:58 +0200
commit

a7703b258aa3c8d30543a7de41ac12f827bd845a

parent

bbe5d54a343420183f7a2202a1df000a95a53fd1

3 files changed, 4 insertions(+), 31 deletions(-)

jump to
M user/satoshipad.nixuser/satoshipad.nix
@@ -24,6 +24,8 @@ ./settings/xresources.nix     ./settings/zsh.nix
   ];
 
+  home.sessionVariables.EMAIL = "alan@satoshipay.io";
+
   xsession.windowManager.i3 = {
     config = {
       assigns = {
M user/settings/base.nixuser/settings/base.nix
@@ -1,4 +1,4 @@-{ config, pkgs, ... }:
+{ config, lib, pkgs, ... }:
 
 {
   # Let Home Manager install and manage itself.
@@ -6,6 +6,7 @@ programs.home-manager.enable = true;   manual = {
     html.enable = true;
   };
+  home.sessionVariables.EMAIL = lib.mkDefault "alan@alanpearce.eu";
   home.packages = with pkgs; [
     pv
     fd
M user/settings/zsh.nixuser/settings/zsh.nix
@@ -258,29 +258,6 @@ ngc = "nix-collect-garbage --delete-older-than 14d";     };
 
     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)
@@ -289,13 +266,6 @@       if [[ ''${path[(I)$HOME/go/bin ]} ]]
       then
         path+=($HOME/go/bin)
-      fi
-
-      if [[ $HOST =~ satoshi ]]
-      then
-        EMAIL=alan@satoshipay.io
-      else
-        EMAIL=alan@alanpearce.eu
       fi
     '';