From 28aaabf84820e7463e22993a707b3688cd152715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20Podgor=C5=A1ek?= Date: Sat, 22 Jul 2017 03:36:01 +0200 Subject: [PATCH] Update, add guixsd config.scm --- .zlogin | 2 ++ .zshrc | 5 +++- config.scm | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 config.scm diff --git a/.zlogin b/.zlogin index a503cab..1b12d1d 100644 --- a/.zlogin +++ b/.zlogin @@ -23,3 +23,5 @@ if [ "$TERM" = "linux" ]; then echo -en "\e]PD6c71c4" # S_violet clear # against bg artifacts fi + +XDG_CONFIG_HOME="$HOME/.config" diff --git a/.zshrc b/.zshrc index f888ff3..764316f 100644 --- a/.zshrc +++ b/.zshrc @@ -102,8 +102,11 @@ export GDK_SCALE=1 # PhantomJS binary location export PHANTOMJS_BIN=/usr/bin/phantomjs +# Guile deprecated warnings +export GUILE_WARN_DEPRECATED="detailed" + # RBEnv -eval "$(rbenv init -)" +command -v rbenv && eval "$(rbenv init -)" # Java fix? export NLS_LANG=American_America.UTF8 diff --git a/config.scm b/config.scm new file mode 100644 index 0000000..152a029 --- /dev/null +++ b/config.scm @@ -0,0 +1,74 @@ +;; This is an operating system configuration template +;; for a "desktop" setup with GNOME and Xfce. + +(use-modules (gnu) (srfi srfi-1) (gnu system nss)) +(use-service-modules desktop networking) +(use-package-modules bootloaders certs shells ssh version-control emacs vim wm freedesktop xorg fontutils) + +;; ZSH location G-expr +(define zsh-location + #~(string-append #$zsh "/bin/zsh")) + +;; Replace wicd with NetworkManager +(define %desktop-services-nm + (cons* (service network-manager-service-type (network-manager-configuration)) + (service wpa-supplicant-service-type) + ;;(service account-service-type) + (remove (lambda (service) (eq? wicd-service-type (service-kind service))) %desktop-services))) + + +(operating-system + (host-name "gpnx") + (timezone "Europe/Ljubljana") + (locale "en_US.UTF-8") + + ;; Assuming /dev/sdX is the target hard disk, and "my-root" + ;; is the label of the target root file system. + (bootloader (grub-configuration (grub grub);;-efi) + ;;(device "/dev/sda1"))) + (device "/dev/sda"))) + (file-systems (cons* (file-system + (device "gpnx") + (title "GNU Guix SD pnx") + (mount-point "/") + (type "ext4")) + (file-system + (device "/dev/sda1") + (mount-point "/boot/efi") + (type "vfat")) + %base-file-systems)) + + (users (cons* (user-account + (name "yuri") + (comment "Silly Yuri") + (group "users") + (shell zsh-location) + (supplementary-groups '("wheel" "netdev" + "audio" "video")) + (home-directory "/home/yuri")) + %base-user-accounts)) + + ;; This is where we specify system-wide packages. + (packages (cons* nss-certs ;for HTTPS access + zsh ;Z shell + openssh + git + emacs + vim + bspwm + libinput + xf86-input-libinput + freetype + %base-packages)) + + ;; Add GNOME and/or Xfce---we can choose at the log-in + ;; screen with F1. Use the "desktop" services, which + ;; include the X11 log-in service, networking with Wicd, + ;; and more. + + (services (cons* ;;(xfce-desktop-service) + (gnome-desktop-service) + %desktop-services-nm)) + + ;; Allow resolution of '.local' host names with mDNS. + (name-service-switch %mdns-host-lookup-nss))