Advertisement
Guest User

Untitled

a guest
Jul 1st, 2018
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. ;; This is an Poperating system configuration template
  2. ;; for a "bare bones" setup, with no X11 display server.
  3.  
  4. (use-modules (gnu) (gnu system nss))
  5. (use-service-modules networking ssh)
  6. (use-package-modules certs screen ssh)
  7.  
  8. (operating-system
  9. (host-name "tilo")
  10. (timezone "Europe/Warsaw")
  11. (locale "pl_PL.utf8")
  12.  
  13. ;; Assuming /dev/sdX is the target hard disk, and "my-root" is
  14. ;; the label of the target root file system.
  15. (bootloader (bootloader-configuration
  16. (bootloader grub-bootloader)
  17. (target "/dev/sda")))
  18.  
  19. (mapped-devices
  20. (list (mapped-device
  21. (source (uuid "XXX-XXX"))
  22. (target "root")
  23. (type luks-device-mapping))))
  24.  
  25. (file-systems (cons* (file-system
  26. (device "/dev/mapper/root")
  27. (mount-point "/")
  28. (type "ext4")
  29. (dependencies mapped-devices))
  30. %base-file-systems))
  31.  
  32. ;; This is where user accounts are specified. The "root"
  33. ;; account is implicit, and is initially created with the
  34. ;; empty password.
  35. (users (cons (user-account
  36. (name "mefisto")
  37. (comment "Pracownia IT")
  38. (group "users")
  39.  
  40. ;; Adding the account to the "wheel" group
  41. ;; makes it a sudoer. Adding it to "audio"
  42. ;; and "video" allows the user to play sound
  43. ;; and access the webcam.
  44. (supplementary-groups '("wheel"
  45. "audio" "video"))
  46. (home-directory "/home/mefisto"))
  47. %base-user-accounts))
  48.  
  49. ;; Globally-installed packages.
  50. (packages (cons* screen openssh %base-packages))
  51.  
  52. ;; Add services to the baseline: a DHCP client and
  53. ;; an SSH server.
  54. (services (cons*
  55. (static-networking-service "eno16780032" "192.168.2.250"
  56. #:netmask "255.255.255.0"
  57. #:gateway "192.168.2.254"
  58. #:name-servers '("192.168.1.211"))
  59. (service openssh-service-type
  60. (openssh-configuration
  61. (port-number 22)))
  62. %base-services)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement