[ create a new paste ] login | about

Link: http://codepad.org/jesUhSwW    [ raw code | fork ]

Plain Text, pasted on Feb 24:
(define-module (os template-server)
  #:use-module (gnu)
  #:use-module (gnu services networking)
  #:use-module (gnu services ssh))

(define-public %my-base-services
  (append
   (list (service openssh-service-type
		  (openssh-configuration
		   (password-authentication? #f)
		   (authorized-keys
		    `(("ep" ,(local-file "ep-caradhras.pub") ,(local-file "ep-pluto.pub"))))))
	 (service dhcp-client-service-type)
	 (service iptables-service-type
		  (iptables-configuration
		   (ipv4-rules (local-file "iptables.rules"))
		   (ipv6-rules (local-file "iptables.rules")))))
   %base-services))

(define-public template-server
  (operating-system
    (locale "en_US.UTF-8")
    (timezone "Europe/Berlin")
    (keyboard-layout
     (keyboard-layout "us" "altgr-intl"))
    (bootloader
     (bootloader-configuration
      (bootloader grub-bootloader)
      (target "/dev/sda")
      (keyboard-layout keyboard-layout)))
    (initrd-modules (append (list "virtio_pci"
                                  "virtio_scsi")
                            %base-initrd-modules))
    (file-systems
     (cons* (file-system
              (mount-point "/")
              (device "/dev/sda1")
              (type "ext4"))
            %base-file-systems))
    (host-name "template")
    (users (cons* (user-account
                   (name "ep")
                   (comment "Ellen Papsch")
                   (group "users")
                   (home-directory "/home/ep")
                   (supplementary-groups
                    '("wheel" "netdev" "audio" "video")))
                  %base-user-accounts))
    (sudoers-file (plain-file "sudoers" "\
root ALL=(ALL) ALL
%wheel ALL=NOPASSWD: ALL\n"))
    (packages
     (append
      (list (specification->package "nss-certs"))
      %base-packages))
    (services %my-base-services)))




Create a new paste based on this one


Comments: