June 24, 2021 8:14 AM, "Xinglu Chen" <pub...@yoctocell.xyz> wrote:
> On Wed, Jun 23 2021, Ludovic Courtès wrote: > > Alternatively, one can also use it as a channel: > > (channel > (name 'rde) > (url "https://git.sr.ht/~abcdw/rde")) > (introduction > (make-channel-introduction > "257cebd587b66e4d865b3537a9a88cccd7107c95" > (openpgp-fingerprint > "2841 9AC6 5038 7440 C7E9 2FFA 2208 D209 58C1 DEB0")))) Maybe I'm doing it wrong...my ~/.config/guix/channels.scm ;; Add variant packages to those Guix provides. (append (list (channel (name 'guix-packages) (url "https://notabug.org/jbranso/guix-packages")) (channel (name 'rde) (url "https://git.sr.ht/~abcdw/rde") (introduction (make-channel-introduction "257cebd587b66e4d865b3537a9a88cccd7107c95" (openpgp-fingerprint "2841 9AC6 5038 7440 C7E9 2FFA 2208 D209 58C1 DEB0"))))) %default-channels) $ guix pull Updating channel 'guix-packages' from Git repository at 'https://notabug.org/jbranso/guix-packages'... Updating channel 'rde' from Git repository at 'https://git.sr.ht/~abcdw/rde'... Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'... Authenticating channel 'guix', commits 9edb3f6 to 8553f00 (3 new commits)... Building from these channels: guix https://git.savannah.gnu.org/git/guix.git 8553f00 rde https://git.sr.ht/~abcdw/rde 6d32c23 guix-packageshttps://notabug.org/jbranso/guix-packages d4b6f35 $ guix build home.scm $ guix pull I suppose for now I will use Ludo's suggestion: git clone https://git.sr.ht/~abcdw/rde guix git authenticate \ "257cebd587b66e4d865b3537a9a88cccd7107c95" \ "2841 9AC6 5038 7440 C7E9 2FFA 2208 D209 58C1 DEB0" \ -k origin/keyring ./pre-inst-env guix home reconfigure /path/to/home-config.scm Failed to execute process './pre-inst-env'. Reason: exec: Exec format error The file './pre-inst-env' is marked as an executable but could not be run by the operating system. Eventually I'll be able to get it to work! But I do like the concept! #+BEGIN_SRC scheme (use-modules (gnu home) (gnu home-services) (gnu home-services ssh) (gnu home-services shells) (gnu home-services files) (gnu services) (gnu packages admin) (guix gexp) (my-home packages) ;; %defines %my-packages ) (home-environment (home-directory "/home/joshua") ;; (symlink-name ".guix-home-env") (packages %my-packages) (services (list (service home-bash-service-type (home-bash-configuration (guix-defaults? #t) (bash-profile '("\ export HISTFILE=$XDG_CACHE_HOME/.bash_history;\n" "if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty3 ]]; then\n" "# this may fix a bug that I have with termite confusing backspace as space in guix environment\n" "# export TERM=linux\n" "# shepherd -c /home/joshua/.config/shepherd/init.scm &\n" "export MOZ_ENABLE_WAYLAND=1;\n" "export GUIX_PACKAGE_PATH=/home/joshua/prog/gnu/guix/guix-packages/;\n" "export XDG_DATA_DIRS=/var/lib/flatpak/exports/share:/home/joshua/.local/share/flatpak/exports/share:$XDG_DATA_DIRS;\n" "exec dbus-run-session sway;\n" "fi" )) (bashrc '("alias lamora='ssh -p 63355 lamora'")))) (simple-service 'termite-config home-files-service-type (list `("config/termite/config" ,(local-file "config-files/termite-config" "config")))) (simple-service 'sway-config home-files-service-type (list `("config/sway/config" ,(local-file "config-files/sway-config" "config")))) (simple-service 'sway-config home-files-service-type (list `("config/sway/status.sh" ,(local-file "config-files/sway-status.sh" "status.sh")))) ))) #+END_SRC