From 5159c11ccbe67bb0fa8ea0856581b22f110607a8 Mon Sep 17 00:00:00 2001 From: bd Date: Thu, 4 Jan 2024 15:31:22 -0700 Subject: Reordered home configuration to section host-specific services. --- .config/guix-builds/bdunahu-config.scm | 117 -------------------------------- .config/guix-builds/bdunahu.scm | 118 +++++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+), 117 deletions(-) delete mode 100644 .config/guix-builds/bdunahu-config.scm create mode 100644 .config/guix-builds/bdunahu.scm (limited to '.config') diff --git a/.config/guix-builds/bdunahu-config.scm b/.config/guix-builds/bdunahu-config.scm deleted file mode 100644 index db3f443..0000000 --- a/.config/guix-builds/bdunahu-config.scm +++ /dev/null @@ -1,117 +0,0 @@ -;; This "home-environment" file can be passed to 'guix home reconfigure' -;; to reproduce the content of your profile. This is "symbolic": it only -;; specifies package names. To reproduce the exact same profile, you also -;; need to capture the channels being used, as returned by "guix describe". -;; See the "Replicating Guix" section in the manual. - -(use-modules (gnu home) - (gnu packages) - (gnu packages gnupg) - (gnu services) - (guix gexp) - (gnu home services shepherd) - (gnu home services xdg) - (gnu home services shells) - (gnu home services gnupg) - (gnu home services desktop) - (gnu home services pm) - (gnu home services ssh)) - -(home-environment - ;; Below is the list of packages that will show up in your - ;; Home profile, under ~/.guix-home/profile. - (packages (specifications->packages (list "aspell" - "aspell-dict-en" - ;; "dmenu" - "emacs-all-the-icons" - "emacs-auctex" - "emacs-company" - "emacs-ednc" - "emacs-emms" - "emacs-exwm" - "emacs-guix" - "emacs-magit" - "emacs-org-roam" - "emacs-pinentry" - "emacs-slime" - "emacs-vertico" - "feh" - "flameshot" - "gimp" - "gnupg" - ;; "htop" - "icecat" - "libnotify" - ;; "mpc" - ;; "mpv" - "password-store" - "pass-otp" - "pinentry-emacs" - "rsync" - "sbcl" - "stow" - ;; "texlive" - "xset" - "yt-dlp" - "zathura" - "zathura-pdf-poppler"))) - - ;; Below is the list of Home services. To search for available - ;; services, run 'guix home search KEYWORD' in a terminal. - (services - (list (service home-xdg-user-directories-service-type - (home-xdg-user-directories-configuration - (desktop "$HOME") - (documents "$HOME") - (download "$HOME/dl") - (music "$HOME/media") - (pictures "$HOME/media") - (publicshare "$HOME") - (templates "$HOME") - (videos "$HOME/media"))) - (service home-bash-service-type - (home-bash-configuration - (aliases '(("cp" . "cp -i") - ("grep" . "grep --color=auto") - ("ll" . "ls -l") - ("ls" . "ls -p --color=auto") - ("mkd" . "mkdir -pv") - ("mv" . "mv -i") - ("rm" . "rm -i") - ("vi" . "vim") - ("ytta" . "yt-dlp --extract-audio --format bestaudio/best") - ("yttv" . "yt-dlp -f b"))) - (bashrc (list (local-file - "/home/bdunahu/.config/guix-builds//.bashrc" - "bashrc"))))) - (service home-batsignal-service-type - (home-batsignal-configuration - (warning-level 35) - (critical-level 15) - (danger-level 5))) - (service home-openssh-service-type - (home-openssh-configuration - (hosts - (list (openssh-host (name "hati") - (host-name "192.168.1.68") - (user "bdunahu")) - (openssh-host (name "vali") - (host-name "192.168.1.64") - (user "bdunahu")) - (openssh-host (name "perch") - (host-name "perch.cs.colostate.edu") - (user "bdunahu")))))) - (service home-xmodmap-service-type - (home-xmodmap-configuration - (key-map '(("remove Lock" . "Caps_Lock") - ("remove Control" . "Control_L") - ("keysym Control_L" ."Caps_Lock") - ("keysym Caps_Lock" . "Control_L") - ("add Lock" . "Caps_Lock") - ("add Control" . "Control_L"))))) - (service home-gpg-agent-service-type - (home-gpg-agent-configuration - (pinentry-program - (file-append pinentry-emacs "/bin/pinentry-emacs")) - (ssh-support? #t))) - (service home-shepherd-service-type)))) diff --git a/.config/guix-builds/bdunahu.scm b/.config/guix-builds/bdunahu.scm new file mode 100644 index 0000000..65e5886 --- /dev/null +++ b/.config/guix-builds/bdunahu.scm @@ -0,0 +1,118 @@ +;; add this directory to the load path. +(add-to-load-path (dirname (current-filename))) + +(use-modules (host-instance) + (gnu home) + (gnu packages) + (gnu packages gnupg) + (gnu services) + (guix gexp) + (gnu home services shepherd) + (gnu home services xdg) + (gnu home services shells) + (gnu home services gnupg) + (gnu home services desktop) + (gnu home services pm) + (gnu home services ssh)) + +(home-environment + ;; List of packages that will show up + ;; under ~/.guix-home/profile. + (packages (specifications->packages (list "aspell" + "aspell-dict-en" + ;; "dmenu" + "emacs-all-the-icons" + "emacs-auctex" + "emacs-company" + "emacs-ednc" + "emacs-emms" + "emacs-exwm" + "emacs-guix" + "emacs-magit" + "emacs-org-roam" + "emacs-pinentry" + "emacs-slime" + "emacs-vertico" + "feh" + "flameshot" + "gimp" + "gnupg" + "icecat" + "libnotify" + ;; "mpc" + ;; "mpv" + "password-store" + "pass-otp" + "pinentry-emacs" + "rsync" + "sbcl" + "stow" + ;; "texlive" + "xset" + "yt-dlp" + "zathura" + "zathura-pdf-poppler"))) + + ;; Below is the list of Home services. To search for available + ;; services, run 'guix home search KEYWORD' in a terminal. + (services + (list (service home-xdg-user-directories-service-type + (home-xdg-user-directories-configuration + (desktop "$HOME") + (documents "$HOME") + (download "$HOME/dl") + (music "$HOME/media") + (pictures "$HOME/media") + (publicshare "$HOME") + (templates "$HOME") + (videos "$HOME/media"))) + (service home-bash-service-type + (home-bash-configuration + (aliases '(("cp" . "cp -i") + ("grep" . "grep --color=auto") + ("ll" . "ls -l") + ("ls" . "ls -p --color=auto") + ("mkd" . "mkdir -pv") + ("mv" . "mv -i") + ("rm" . "rm -i") + ("vi" . "vim") + ("ytta" . "yt-dlp --extract-audio --format bestaudio/best") + ("yttv" . "yt-dlp -f b"))) + (bashrc (list (local-file + "/home/bdunahu/.config/guix-builds//.bashrc" + "bashrc"))))) + (service home-openssh-service-type + (home-openssh-configuration + (hosts + (list (openssh-host (name "hati") + (host-name "192.168.1.68") + (user "bdunahu")) + (openssh-host (name "vali") + (host-name "192.168.1.64") + (user "bdunahu")) + (openssh-host (name "perch") + (host-name "perch.cs.colostate.edu") + (user "bdunahu")))))) + (service home-gpg-agent-service-type + (home-gpg-agent-configuration + (pinentry-program + (file-append pinentry-emacs "/bin/pinentry-emacs")) + (ssh-support? #t))) + (service home-shepherd-service-type) + + + (if (equal? host-name "vali") + (service home-batsignal-service-type + (home-batsignal-configuration + (warning-level 35) + (critical-level 15) + (danger-level 5))) + (service home-xmodmap-service-type + (home-xmodmap-configuration + (key-map '(("remove Lock" . "Caps_Lock") + ("remove Control" . "Control_L") + ("keysym Control_L" ."Caps_Lock") + ("keysym Caps_Lock" . "Control_L") + ("add Lock" . "Caps_Lock") + ("add Control" . "Control_L")))))) + ))) -- cgit v1.2.3