Guest User

Untitled

a guest
Jul 1st, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 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 "/dev/sda2")
  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. (file-system
  31. (device "/dev/sda1")
  32. (mount-point "/boot")
  33. (type "vfat"))
  34. %base-file-systems))
  35.  
  36. ;; This is where user accounts are specified. The "root"
  37. ;; account is implicit, and is initially created with the
  38. ;; empty password.
  39. (users (cons (user-account
  40. (name "mefisto")
  41. (comment "Pracownia IT")
  42. (group "users")
  43.  
  44. ;; Adding the account to the "wheel" group
  45. ;; makes it a sudoer. Adding it to "audio"
  46. ;; and "video" allows the user to play sound
  47. ;; and access the webcam.
  48. (supplementary-groups '("wheel"
  49. "audio" "video"))
  50. (home-directory "/home/mefisto"))
  51. %base-user-accounts))
  52.  
  53. ;; Globally-installed packages.
  54. (packages (cons* screen openssh %base-packages))
  55.  
  56. ;; Add services to the baseline: a DHCP client and
  57. ;; an SSH server.
  58. (services (cons*
  59. (static-networking-service "eno16780032" "192.168.2.250"
  60. #:netmask "255.255.255.0"
  61. #:gateway "192.168.2.254"
  62. #:name-servers '("192.168.1.211"))
  63. (service openssh-service-type
  64. (openssh-configuration
  65. (port-number 22)))
  66. %base-services)))
Advertisement
Add Comment
Please, Sign In to add comment