Skip to content

Commit

Permalink
fix: channels & config.scm, add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan4yin committed Sep 20, 2023
1 parent 153e3e8 commit 48ac5eb
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# NOTE: Makefile's target name should not be the same as one of the file or directory in the current directory,
# otherwise the target will not be executed!
#


deploy:
sudo guix system reconfigure ./config.scm

pull:
echo "Pulling all channel's git repositories..."
echo "Based on the gap between the current commit and the latest commit of guix's official repo, this operation may take a while..."
guix pull --channels=./channels.scm
guix describe --format=channels > ./channels.scm

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# guix-config

My dotfiles for GNU Guix
10 changes: 6 additions & 4 deletions channels.scm
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
(cons*
(list
;; packages some non-free software which cannot be included in the official distribution
(channel
(name 'nonguix)
(url "https://gitlab.com/nonguix/nonguix")
(url "https://github.com/nonguix/nonguix")
;; Enable signature verification:
(introduction
(make-channel-introduction
"897c1a470da759236cc11798f4e0a5f7d4d59fbc"
(openpgp-fingerprint
"2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))
;; default guix channel(Mirror in China)
;; default guix channel
;; https://git.savannah.gnu.org/cgit/guix.git/refs/heads
(channel
(inherit (car %default-channels))
(url "https://mirror.guix.org.cn/git/guix.git")))
;; Stay on the version 1.4.0 to avoid too much update
(branch "version-1.4.0")))

6 changes: 2 additions & 4 deletions config.scm
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,14 @@
(set-xorg-configuration
(xorg-configuration (keyboard-layout keyboard-layout))))

;; This is the default list of services we
;; Using the substitute server of SJTU to speed up the download.
(modify-services %desktop-services
(guix-service-type
config => (guix-configuration
(inherit config)
(substitute-urls '("https://mirror.sjtu.edu.cn/guix/" "https://ci.guix.gnu.org")))))
(substitute-urls '("https://mirror.sjtu.edu.cn/guix/" "https://ci.guix.gnu.org")))))))

;; This is the default list of services we
;; are appending to.
%desktop-services))
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(targets (list "/dev/sda"))
Expand Down

0 comments on commit 48ac5eb

Please sign in to comment.