Advertisement
Guest User

Untitled

a guest
Apr 28th, 2024
199
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 1 0
  1. system.scm:
  2. (use-modules (gnu) (gnu home) (gnu packages terminals) (gnu packages wm) (gnu packages shells) (nongnu packages linux) (nongnu system linux-initrd))
  3. (use-package-modules vpn)
  4. (use-service-modules cups desktop networking dbus ssh audio xorg)
  5.  
  6. (define etc-sudoers-config
  7. (plain-file "etc-sudoers-config"
  8. "Defaults timestamp_timeout=480
  9. root ALL=(ALL) ALL
  10. %wheel ALL=(ALL) ALL
  11. user ALL=(ALL) NOPASSWD:/run/current-system/profile/bin/loginctl"))
  12.  
  13.  
  14.  
  15.  
  16. (operating-system
  17. (locale "en_US.utf8")
  18. (timezone "America/Cincinatti")
  19. (kernel linux)
  20. (sudoers-file etc-sudoers-config)
  21. (initrd microcode-initrd)
  22. (firmware (list linux-firmware))
  23. (keyboard-layout (keyboard-layout "us"))
  24. (host-name "system")
  25.  
  26. ;; The list of user accounts ('root' is implicit).
  27. (users (cons* (user-account
  28. (name "user")
  29. (comment "system owner")
  30. (group "users")
  31. (shell (file-append zsh "/bin/zsh"))
  32. (home-directory "/home/user")
  33. (supplementary-groups '("wheel" "netdev" "audio" "video")))
  34. %base-user-accounts))
  35.  
  36. ;; Packages installed system-wide. Users can also install packages
  37. ;; under their own account: use 'guix search KEYWORD' to search
  38. ;; for packages and 'guix install PACKAGE' to install a package.
  39. (packages (append (list
  40. sway
  41. swaylock
  42. zsh
  43. kitty
  44. wireguard-tools)
  45. %base-packages))
  46. ;;(kernel-loadable-modules (list wireguard-linux-compat))
  47.  
  48. ;; Below is the list of system services. To search for available
  49. ;; services, run 'guix system search KEYWORD' in a terminal.
  50. (services
  51. (append (list
  52. (service gnome-desktop-service-type)
  53. (service xfce-desktop-service-type)
  54. (set-xorg-configuration
  55. (xorg-configuration (keyboard-layout keyboard-layout))))
  56. (modify-services %desktop-services
  57. (gdm-service-type config =>
  58. (gdm-configuration
  59. (inherit config)
  60. (wayland? #t))))
  61. )) ;;(simple-service 'wireguard-module
  62. ;; kernel-module-loader-service-type
  63. ;; '("wireguard")))
  64.  
  65.  
  66. ;; This is the default list of services we
  67. ;; are appending to.
  68. ;;%desktop-services))
  69. (bootloader (bootloader-configuration
  70. (bootloader grub-efi-removable-bootloader)
  71. (targets (list "/boot/efi"))
  72. (keyboard-layout keyboard-layout)))
  73. (mapped-devices (list (mapped-device
  74. (source (uuid
  75. "874bca3c-0cad-45cc-9e08-f5fc7j899fac"))
  76. (target "cryptroot")
  77. (type (luks-device-mapping-with-options
  78. #:key-file "/dev/sdb")))))
  79.  
  80. ;; The list of file systems that get "mounted". The unique
  81. ;; file system identifiers there ("UUIDs") can be obtained
  82. ;; by running 'blkid' in a terminal.
  83. (file-systems (cons* (file-system
  84. (mount-point "/")
  85. (device "/dev/mapper/cryptroot")
  86. (type "btrfs")
  87. (dependencies mapped-devices))
  88. (file-system
  89. (mount-point "/boot/efi")
  90. (device (uuid "78BA-FA52"
  91. 'fat32))
  92. (type "vfat")) %base-file-systems)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement