From 2a41119054ef2e703037fbe030df109781cac03a Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 13 May 2017 22:02:23 +0200 Subject: add guixsd config --- guix/system.scm | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 2 ++ 2 files changed, 60 insertions(+) create mode 100644 guix/system.scm diff --git a/guix/system.scm b/guix/system.scm new file mode 100644 index 0000000..3e51b1f --- /dev/null +++ b/guix/system.scm @@ -0,0 +1,58 @@ +(use-modules (gnu) (gnu system nss)) +(use-service-modules desktop) +(use-package-modules base wm certs text-editors version-control shells admin file xorg video gnupg ssh linux) + +(operating-system + (host-name "fishbowl") + (timezone "Europe/Berlin") + (locale "en_US.UTF-8") + + (bootloader (grub-configuration (device "/dev/sda"))) + + (mapped-devices + (list (mapped-device + (source (uuid "47c46f56-bdf9-4982-a00e-4aaf8f3b969f")) + (target "the-root-device") + (type luks-device-mapping)))) + + (file-systems (cons* (file-system + (device "root") + (title 'label) + (mount-point "/") + (type "ext4") + (dependencies mapped-devices)) + %base-file-systems)) + (swap-devices '("/swap")) + + (users (cons (user-account + (name "fischerling") + (comment "") + (group "users") + (supplementary-groups '("wheel" "netdev" + "audio" "video")) + (home-directory "/home/fischerling")) + ;;(shell "fish")) + %base-user-accounts)) + + (packages (cons* i3-wm ;window managers + git + fish + wpa-supplicant + acpi + file + vis + htop + gnupg + openssh + xorg-server + xinit + mpv + youtube-dl + nss-certs ;for HTTPS access + %base-packages)) + + (services (cons* (console-keymap-service "de") + %base-services)) + + ;; Allow resolution of '.local' host names with mDNS. + (name-service-switch %mdns-host-lookup-nss)) diff --git a/setup.py b/setup.py index c7e2f42..3dfadb7 100755 --- a/setup.py +++ b/setup.py @@ -86,6 +86,8 @@ def offlineimap_warn(quiet): # targets are a list of tuples and/or functions targets = { + "guixsd": + [("guix/system.scm", "/etc/guix/system.scm")], "vimrc": [("vimrc", home_dir + "/.vimrc")], "vim.d": -- cgit v1.2.3