Created
October 7, 2021 04:08
-
-
Save casouri/87e8fdd3a53efd2bbf1c64d0664bf6a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-modules (gnu) | |
(gnu system nss) | |
(gnu packages gnome) | |
(gnu packages version-control) | |
(gnu packages emacs)) | |
(use-service-modules desktop xorg) | |
(use-package-modules certs) | |
(operating-system | |
(host-name "Blanche") | |
(timezone "America/Los_Angeles") | |
(locale "en_US.utf8") | |
;; Choose US English keyboard layout. The "altgr-intl" | |
;; variant provides dead keys for accented characters. | |
(keyboard-layout | |
(keyboard-layout "us" "intl" | |
#:options '("ctrl:nocaps"))) | |
;; Use the UEFI variant of GRUB with the EFI System | |
;; Partition mounted on /boot/efi. | |
(bootloader (bootloader-configuration | |
(bootloader grub-efi-bootloader) | |
(target "/boot/efi") | |
(keyboard-layout keyboard-layout))) | |
(file-systems (append | |
(list (file-system | |
(device "/dev/nvme0n1p2") | |
(mount-point "/") | |
(type "ext4")) | |
(file-system | |
(device "/dev/nvme0n1p1") | |
(mount-point "/boot/efi") | |
(type "vfat")) | |
(file-system | |
(device "/dev/sda") | |
(mount-point "/cellar") | |
(type "ntfs"))) | |
%base-file-systems)) | |
(swap-devices (list "/swapfile")) | |
;; Create user `bob' with `alice' as its initial password. | |
(users (cons (user-account | |
(name "yuan") | |
(comment "Me") | |
(group "users") | |
(supplementary-groups '("wheel" "netdev" | |
"audio" "video"))) | |
%base-user-accounts)) | |
;; This is where we specify system-wide packages. | |
(packages (append (list | |
nss-certs ; for HTTPS access | |
gvfs ; for user mounts | |
git | |
emacs) | |
%base-packages)) | |
;; Add Xfce. Use the "desktop" services, which include the X11 log-in | |
;; service, networking with NetworkManager, and more. | |
(services (append (list (service xfce-desktop-service-type) | |
(set-xorg-configuration | |
(xorg-configuration | |
(keyboard-layout keyboard-layout)))) | |
%desktop-services)) | |
;; Allow resolution of '.local' host names with mDNS. | |
(name-service-switch %mdns-host-lookup-nss)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment