-
-
Save radamar/b41f251d91cfdfe389585c0dceb1de8e to your computer and use it in GitHub Desktop.
This file contains 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
$: cat config.scm | |
;; This is an operating system configuration template | |
;; for a "desktop" setup with GNOME and Xfce where the | |
;; root partition is encrypted with LUKS. | |
(use-modules (gnu) (gnu system nss)) | |
(use-service-modules networking ssh desktop) | |
(use-package-modules certs gnome screen ssh) | |
(operating-system | |
(host-name "mowbray") | |
(timezone "Asia/Kolkata") | |
(locale "en_US.utf8") | |
;; Assuming /dev/sdX is the target hard disk, and "my-root" | |
;; is the label of the target root file system. | |
(bootloader (bootloader-configuration | |
(bootloader grub-bootloader) | |
(target "/dev/sda"))) | |
;; Specify a mapped device for the encrypted root partition. | |
;; The UUID is that returned by 'cryptsetup luksUUID'. | |
(mapped-devices | |
(list (mapped-device | |
(source (uuid "6da2634c-710a-4061-b878-38e0c0c1f615")) | |
(target "home") | |
(type luks-device-mapping)))) | |
(file-systems (cons (file-system | |
(device "root") | |
(title 'label) | |
(mount-point "/") | |
(type "ext4")) | |
%base-file-systems)) | |
(file-systems (cons (file-system | |
(device "home") | |
(title 'label) | |
(mount-point "/home") | |
(type "ext4") | |
(dependencies mapped-devices)) | |
%base-file-systems)) | |
(users (cons (user-account | |
(name "amar") | |
(comment "") | |
(group "users") | |
(supplementary-groups '("wheel" "netdev" | |
"audio" "video")) | |
(home-directory "/home/amar")) | |
%base-user-accounts)) | |
;; This is where we specify system-wide packages. | |
(packages (cons* nss-certs ;for HTTPS access | |
gvfs ;for user mounts | |
screen | |
openssh | |
%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* (dhcp-client-service) | |
(service openssh-service-type | |
(openssh-configuration | |
(port-number 2222))) | |
%base-services)) | |
(services (cons* (gnome-desktop-service) | |
(xfce-desktop-service) | |
%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