Fork me on GitHub

Hello all, I have 2 systems on which i have my same spacemacs config What i am trying to achieve is that according to my system's name different font size should be set in my spacemacs and i want to use the same .spacemacs for both my systems I know it can be done using simple if else but i am lacking somewhere and i dont know why. Currently i am achieving this using the below code in my user-init which is very inefficient

(if (string= (system-name) "sam16")
      (setq-default dotspacemacs-default-font '("Source Code Pro"
						:size 12
						:weight normal
						:width normal
						:powerline-scale 1.1))
    (setq-default dotspacemacs-default-font '("Source Code Pro"
                                              :size 14
                                              :weight normal
                                              :width normal
                                              :powerline-scale 1.1)))
I have this code commented too which i made by reading other peoples config in their dotspacemacs/init but i am not able to do it in my dotspacemacs/init hence doing the above in my user-init
default dotspacemacs-default-font '("Source Code Pro"
                                                :size ,(if (string= (system-name) "sam16")
                                                :weight normal
                                                :width normal
                                                :powerline-scale 1.1)
All i want to change is the font-size according to the system-name i have tried many things and also searched alot but somewhere my knowledge lacks hence can someone help me out.