2024-04-23 16:57:30 -08:00
|
|
|
;; 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 emacs)
|
|
|
|
(gnu packages vim)
|
2024-10-07 22:28:33 -08:00
|
|
|
(gnu packages version-control)
|
|
|
|
(gnu packages terminals)
|
2024-10-26 14:26:17 -08:00
|
|
|
(gnu packages web)
|
|
|
|
(gnu packages video)
|
|
|
|
(gnu packages fonts)
|
|
|
|
(gnu packages curl)
|
|
|
|
(benoitj packages fonts)
|
|
|
|
(nebula packages fonts)
|
|
|
|
(zzkt packages fonts)
|
|
|
|
; (gnu packages font-nerd-fonts)
|
|
|
|
; (nonguix packages)
|
|
|
|
(nongnu packages mozilla)
|
2024-04-23 16:57:30 -08:00
|
|
|
(gnu services)
|
|
|
|
(guix gexp)
|
2024-04-26 11:36:14 -08:00
|
|
|
(guix store)
|
|
|
|
(guix download)
|
|
|
|
(guix base64)
|
2024-04-23 16:57:30 -08:00
|
|
|
(gnu home services)
|
2024-04-25 12:43:05 -08:00
|
|
|
(gnu home services shells)
|
2024-04-26 15:50:29 -08:00
|
|
|
(system foreign)
|
2024-04-25 12:43:05 -08:00
|
|
|
(atlas home services dconf)
|
|
|
|
)
|
2024-04-23 16:57:30 -08:00
|
|
|
|
2024-04-26 11:36:14 -08:00
|
|
|
;; taken from https://git.sr.ht/~michal_atlas/dotfiles/tree/16ccb8dd549494fd4165f706c899b591903d1a6d/item/home.scm
|
|
|
|
(define (file-fetch url hash)
|
|
|
|
(with-store store
|
2024-10-26 14:26:17 -08:00
|
|
|
(run-with-store store
|
|
|
|
(url-fetch url 'sha256
|
|
|
|
; hash
|
|
|
|
(base64-decode hash)
|
|
|
|
))))
|
2024-04-26 11:36:14 -08:00
|
|
|
|
2024-04-23 16:57:30 -08:00
|
|
|
(home-environment
|
|
|
|
;; Below is the list of packages that will show up in your
|
|
|
|
;; Home profile, under ~/.guix-home/profile.
|
|
|
|
(packages (list
|
2024-10-26 14:26:17 -08:00
|
|
|
emacs
|
|
|
|
git
|
|
|
|
firefox
|
|
|
|
kitty
|
|
|
|
;font-nerd-fonts-firacode
|
|
|
|
meslo-nerd-font
|
|
|
|
font-monaspace
|
|
|
|
font-google-noto-sans-cjk
|
|
|
|
font-google-noto-emoji
|
|
|
|
curl
|
|
|
|
mpv
|
2024-04-23 16:57:30 -08:00
|
|
|
neovim))
|
|
|
|
|
|
|
|
;; Below is the list of Home services. To search for available
|
|
|
|
;; services, run 'guix home search KEYWORD' in a terminal.
|
|
|
|
(services
|
2024-04-25 12:43:05 -08:00
|
|
|
(list
|
2024-04-26 12:05:29 -08:00
|
|
|
(simple-service 'face-image
|
|
|
|
home-files-service-type
|
|
|
|
`(
|
|
|
|
(".face" ,(file-fetch
|
2024-10-26 14:26:17 -08:00
|
|
|
"https://marq42.xyz/mir-avatar-picrew-3.png"
|
|
|
|
;; get below with `guix download URL --format=base64` - this took ages to work out
|
2024-10-09 18:56:02 -08:00
|
|
|
"Psx4J7+7mMKqpsT/rl/Iv/XQnZlTJ1WSMpswuNDjv38="
|
2024-04-26 12:05:29 -08:00
|
|
|
))))
|
2024-04-25 12:43:05 -08:00
|
|
|
(service home-dconf-load-service-type
|
|
|
|
#~`((org/gnome/shell
|
2024-10-26 14:26:17 -08:00
|
|
|
(disable-user-extensions #f)
|
|
|
|
(favorite-apps #(
|
|
|
|
"kitty.desktop"
|
|
|
|
"firefox.desktop"
|
|
|
|
"emacs.desktop"
|
|
|
|
"org.gnome.Settings.desktop"
|
|
|
|
"org.gnome.Nautilus.desktop"
|
|
|
|
"btop.desktop"))
|
|
|
|
)
|
|
|
|
|
2024-04-25 12:43:05 -08:00
|
|
|
(org/gnome/desktop/interface
|
|
|
|
(color-scheme "prefer-dark"))
|
|
|
|
(org/gnome/mutter
|
|
|
|
(edge-tiling #t))
|
|
|
|
(org/gnome/desktop/input-sources
|
|
|
|
(xkb-options #("caps:escape")))
|
|
|
|
(org/gnome/desktop/wm/preferences
|
2024-10-26 14:26:17 -08:00
|
|
|
(focus-mode "sloppy"))
|
2024-04-25 12:43:05 -08:00
|
|
|
(org/gnome/settings-daemon/plugins/power
|
2024-10-26 14:26:17 -08:00
|
|
|
(idle-dim #f)
|
|
|
|
(sleep-inactive-ac-type "nothing"))
|
2024-04-25 12:43:05 -08:00
|
|
|
(org/gnome/gnome-system-monitor
|
2024-10-26 14:26:17 -08:00
|
|
|
(current-tab "resources"))
|
2024-04-25 12:43:05 -08:00
|
|
|
(org/gnome/desktop/interface
|
2024-04-26 11:36:14 -08:00
|
|
|
(show-battery-percentage #t))
|
2024-10-26 14:26:17 -08:00
|
|
|
;; (org/gnome/desktop/session
|
|
|
|
;; (idle-delay "uint32 0")
|
|
|
|
;; ;(idle-delay ,(int32->uint32 0))
|
|
|
|
;; )
|
2024-04-26 11:36:14 -08:00
|
|
|
(org/gnome/desktop/background
|
|
|
|
(picture-uri-dark
|
|
|
|
#$(file-fetch "https://www.teahub.io/photos/full/154-1542362_mac-os-mojave-screenshot.jpg"
|
|
|
|
;; got by running `guix hash 154-1542362_mac-os-mojave-screenshot.jpg --hash=sha256 --format=base64`
|
|
|
|
"avrKrso2RJBM0X9BD8likF/7wV0SWMNgoLqtqAixLG8="
|
|
|
|
)))
|
2024-04-25 12:43:05 -08:00
|
|
|
(org/gnome/desktop/peripherals/touchpad
|
2024-10-26 14:26:17 -08:00
|
|
|
(tap-to-click #t)))) ; end gnome stuff
|
2024-10-07 22:28:33 -08:00
|
|
|
;; shell
|
2024-04-25 12:43:05 -08:00
|
|
|
(service home-bash-service-type
|
|
|
|
(home-bash-configuration
|
|
|
|
(bash-profile (list (plain-file
|
|
|
|
"bash-profile"
|
|
|
|
"
|
|
|
|
export HISTFILE=$XDG_CACHE_HOME/.bash_history
|
|
|
|
GUIX_PROFILE=/home/mir/.guix-profile
|
|
|
|
. $GUIX_PROFILE/etc/profile
|
|
|
|
"
|
|
|
|
)))
|
|
|
|
(aliases '(("grep" . "grep --color=auto")
|
|
|
|
("ll" . "eza -l")
|
|
|
|
("ls" . "eza")
|
|
|
|
("vi" . "nvim"))
|
|
|
|
))))))
|