From 57b6504ea2931a7a07f521a925c5d3ac55bb5c34 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Tue, 19 Nov 2024 23:07:47 +0800 Subject: [PATCH] [feat] division multiple machine --- files/bashrc | 8 ++++++ home-configuration.scm | 58 +++++++++++++++++++++++++++--------------- 2 files changed, 46 insertions(+), 20 deletions(-) create mode 100644 files/bashrc diff --git a/files/bashrc b/files/bashrc new file mode 100644 index 0000000..b1adf16 --- /dev/null +++ b/files/bashrc @@ -0,0 +1,8 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +exec zsh diff --git a/home-configuration.scm b/home-configuration.scm index dda6af3..2a55ac8 100644 --- a/home-configuration.scm +++ b/home-configuration.scm @@ -14,24 +14,42 @@ (load "packages.scm") -(home-environment - ;; Below is the list of packages that will show up in your - ;; Home profile, under ~/.guix-home/profile. - (packages (append (specifications->packages - (list - "guile-hoot" - "guile-next" - "zsh" - "zsh-autosuggestions" - "zsh-syntax-highlighting" - "fzf")) - (list - zellij))) +(if (equal? "lighthouse" (getlogin)) + (home-environment + (packages (append (specifications->packages + (list + "zsh" + "zsh-autosuggestions" + "zsh-syntax-highlighting" + "fzf")) + (list + zellij))) + (services + (list + (service oh-my-zsh-service-type) + (service home-bash-service-type + (home-bash-configuration + (bashrc (list (local-file "files/bashrc"))))) + (service home-zsh-service-type + (home-zsh-configuration + (zshrc (list (local-file "files/zshrc")))))))) - (services - (list - (service oh-my-zsh-service-type) - (service home-emacs-service-type) - (service home-zsh-service-type - (home-zsh-configuration - (zshrc (list (local-file "files/zshrc")))))))) + (home-environment + (packages (append (specifications->packages + (list + "guile-hoot" + "guile-next" + "zsh" + "zsh-autosuggestions" + "zsh-syntax-highlighting" + "fzf")) + (list + zellij))) + (services + (list + (service oh-my-zsh-service-type) + (service home-emacs-service-type) + (service home-zsh-service-type + (home-zsh-configuration + (zshrc (list (local-file "files/zshrc")))))))) + )