feat(guix): i3lock, nix fonts, some software

This commit is contained in:
Pavel Korytov 2021-06-22 08:54:46 +03:00
parent f39b410440
commit 12e25acdeb
7 changed files with 40 additions and 8 deletions

View file

@ -1,5 +1,6 @@
(specifications->manifest (specifications->manifest
'( '(
"fzf"
"neofetch" "neofetch"
"osync" "osync"
"nethogs" "nethogs"

View file

@ -1,5 +1,8 @@
(specifications->manifest (specifications->manifest
'( '(
"fontconfig"
"gnome-font-viewer"
"xdg-utils"
"telegram-desktop" "telegram-desktop"
"keepassxc" "keepassxc"
"thunar" "thunar"
@ -14,7 +17,6 @@
"xprop" "xprop"
"xrandr" "xrandr"
"megacmd-1.4" "megacmd-1.4"
"xsettingsd"
"activitywatch-bin" "activitywatch-bin"
"flatpak" "flatpak"
"zathura-djvu" "zathura-djvu"
@ -33,7 +35,6 @@
"bind" "bind"
"polybar" "polybar"
"i3-gaps" "i3-gaps"
"hicolor-icon-theme" "xsettingsd"
"papirus-icon-theme" "papirus-icon-theme"
"matcha-theme" "matcha-theme"))
"lxappearance"))

View file

@ -23,6 +23,7 @@
(define %my-base-services (define %my-base-services
(cons* (cons*
(service openssh-service-type) (service openssh-service-type)
(screen-locker-service i3lock "i3lock")
(extra-special-file "/lib64/ld-linux-x86-64.so.2" (file-append glibc "/lib/ld-linux-x86-64.so.2")) (extra-special-file "/lib64/ld-linux-x86-64.so.2" (file-append glibc "/lib/ld-linux-x86-64.so.2"))
(service nix-service-type) (service nix-service-type)
(service cups-service-type (service cups-service-type

View file

@ -33,13 +33,23 @@ fi
# Guix settings:2 ends here # Guix settings:2 ends here
# [[file:Console.org::*Guix settings][Guix settings:3]] # [[file:Console.org::*Guix settings][Guix settings:3]]
export GUIX_PACKAGE_PATH=~/guix-packages if [ -d "$HOME/.guix-extra-profiles/desktop" ]; then
export FONTCONFIG_PATH="$HOME/.guix-extra-profiles/desktop/desktop/etc/fonts"
fi
# Guix settings:3 ends here # Guix settings:3 ends here
# [[file:Console.org::*Guix settings][Guix settings:4]] # [[file:Console.org::*Guix settings][Guix settings:4]]
export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share" export GUIX_PACKAGE_PATH=~/guix-packages
# Guix settings:4 ends here # Guix settings:4 ends here
# [[file:Console.org::*Guix settings][Guix settings:5]]
export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share"
# Guix settings:5 ends here
# [[file:Console.org::*Guix settings][Guix settings:6]]
export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.nix-profile/share/applications"
# Guix settings:6 ends here
# [[file:Console.org::*XResources][XResources:1]] # [[file:Console.org::*XResources][XResources:1]]
xrdb ~/.Xresources xrdb ~/.Xresources
# XResources:1 ends here # XResources:1 ends here

View file

@ -56,6 +56,7 @@ if [ -d "$HOME/bin" ] ; then
export PATH="$HOME/bin/scripts:$PATH" export PATH="$HOME/bin/scripts:$PATH"
fi fi
#+end_src #+end_src
** Guix settings ** Guix settings
Enable extra profiles Enable extra profiles
@ -79,6 +80,13 @@ if [ -f /run/current-system/profile/etc/profile.d/nix.sh ]; then
fi fi
#+end_src #+end_src
Use Guix fontconfig. Necessary for nix apps
#+begin_src sh
if [ -d "$HOME/.guix-extra-profiles/desktop" ]; then
export FONTCONFIG_PATH="$HOME/.guix-extra-profiles/desktop/desktop/etc/fonts"
fi
#+end_src
Set a folder for my packages. Set a folder for my packages.
#+begin_src sh #+begin_src sh
export GUIX_PACKAGE_PATH=~/guix-packages export GUIX_PACKAGE_PATH=~/guix-packages
@ -88,6 +96,11 @@ Make flatpak apps visible to launchers
#+begin_src sh #+begin_src sh
export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share" export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share"
#+end_src #+end_src
Make nix apps visible to launchers
#+begin_src sh
export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.nix-profile/share/applications"
#+end_src
** XResources ** XResources
| Guix dependency | | Guix dependency |
|-----------------| |-----------------|
@ -678,6 +691,8 @@ key_bindings:
| nethogs | A tool to group processed by used bandwidth | | nethogs | A tool to group processed by used bandwidth |
| osync | rsync wrapper | | osync | rsync wrapper |
| neofetch | Fetch system info | | neofetch | Fetch system info |
| fzf | fuzzy finder |
| p7zip | archiver |
| Note | Description | | Note | Description |
|------+-----------------| |------+-----------------|

View file

@ -12,7 +12,6 @@ My general desktop environment configuration.
Parts prefixed with (OFF) are not used, but kept for historic purposes. For some reason GitHub's org renderer ignores TODO status, hence such a prefix. Round brackets instead of square ones to prevent GitHub's org renderer from screwing up. Parts prefixed with (OFF) are not used, but kept for historic purposes. For some reason GitHub's org renderer ignores TODO status, hence such a prefix. Round brackets instead of square ones to prevent GitHub's org renderer from screwing up.
* Contents * Contents
:PROPERTIES: :PROPERTIES:
:TOC: :include all :depth 3 :TOC: :include all :depth 3
@ -180,7 +179,7 @@ Net/ThemeName "Matcha-dark-azul"
Net/IconThemeName "Papirus-Dark" Net/IconThemeName "Papirus-Dark"
Gtk/DecorationLayout "menu:minimize,maximize,close" Gtk/DecorationLayout "menu:minimize,maximize,close"
Gtk/FontName "Sans 12" Gtk/FontName "Sans 12"
Gtk/MonospaceFontName "JetbrainsMono Nerd Mono 12" Gtk/MonospaceFontName "JetBrainsMono Nerd Mono 12"
Gtk/CursorThemeName "Adwaita" Gtk/CursorThemeName "Adwaita"
Xft/Antialias 1 Xft/Antialias 1
Xft/Hinting 0 Xft/Hinting 0
@ -2051,6 +2050,7 @@ This section generates manifests for various desktop software that I'm using.
| dev | conda | | dev | conda |
| dev | docker-compose | | dev | docker-compose |
| dev | python | | dev | python |
| dev | postgresql |
** Manifests ** Manifests
#+NAME: packages #+NAME: packages
#+begin_src emacs-lisp :tangle no :var category="" #+begin_src emacs-lisp :tangle no :var category=""
@ -2310,6 +2310,9 @@ Other desktop programs I use are listed below.
| thunar | My preferred GUI file manager | | thunar | My preferred GUI file manager |
| keepassxc | My preferred password manager | | keepassxc | My preferred password manager |
| telegram-desktop | telegram client | | telegram-desktop | telegram client |
| xdg-utils | gives xdg-open and stuff |
| gnome-font-viewer | view fonts |
| fontconfig | |
#+NAME: packages #+NAME: packages
#+begin_src emacs-lisp :tangle no #+begin_src emacs-lisp :tangle no

View file

@ -249,6 +249,7 @@ Default services for each machine:
(define %my-base-services (define %my-base-services
(cons* (cons*
(service openssh-service-type) (service openssh-service-type)
(screen-locker-service i3lock "i3lock")
(extra-special-file "/lib64/ld-linux-x86-64.so.2" (file-append glibc "/lib/ld-linux-x86-64.so.2")) (extra-special-file "/lib64/ld-linux-x86-64.so.2" (file-append glibc "/lib/ld-linux-x86-64.so.2"))
(service nix-service-type) (service nix-service-type)
(service cups-service-type (service cups-service-type