Advertisement
mason1920

SYSTEM

Jan 12th, 2023 (edited)
1,865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 4.26 KB | None | 0 0
  1. (define-syntax import-from (syntax-rules ()
  2.   ((_ ((partial ...) ((completion ...) symbols ...)))
  3.     (import (only (partial ... completion ...) symbols ...)))
  4.   ((_ (partial completion rest ...)) (begin
  5.     (import-from (partial completion))
  6.     (import-from (partial rest ...))))
  7.   ((_ library rest ...) (begin
  8.     (import-from library)
  9.     (import-from rest ...)))))
  10.  
  11.  
  12.  
  13. (import-from
  14.  
  15. ((guix gexp)
  16.   (()               local-file
  17.                     plain-file))
  18. ((gnu system)
  19.   ((uuid)           uuid)
  20.   ((keyboard)       keyboard-layout)
  21.   ((file-systems)   %base-file-systems
  22.                     file-system
  23.                     swap-space))
  24. ((gnu bootloader)
  25.   (()               bootloader-configuration)
  26.   ((grub)           grub-efi-bootloader))
  27. ((gnu services)
  28.   ((base)           %default-substitute-urls
  29.                     %default-authorized-guix-keys
  30.                     guix-configuration
  31.                     guix-service-type)
  32.   ((xorg)           xorg-configuration
  33.                     set-xorg-configuration)
  34.   ((desktop)        %desktop-services
  35.                     bluetooth-service
  36.                     gnome-desktop-service-type
  37.                     xfce-desktop-service-type)
  38.   ((cups)           cups-service-type
  39.                     cups-configuration)
  40.   ((sound)          ladspa-service-type
  41.                     ladspa-configuration
  42.                     pulseaudio-service-type)
  43.   ((virtualization) libvirt-service-type
  44.                     virtlog-service-type))
  45. ((gnu packages)
  46.   ((audio)          swh-plugins)
  47.   ((certs)          nss-certs)
  48.   ((wm)             i3-gaps
  49.                     i3status)
  50.   ((cups)           hplip-minimal)
  51.   ((suckless)       dmenu))
  52. ((nongnu packages)
  53.   ((linux)          linux
  54.                     linux-firmware))
  55.  
  56. )
  57.  
  58.  
  59.  
  60. (define keyboard-layout (keyboard-layout "us" #:options (list
  61.   "compose:ralt"))) ; RIGHT ALT FOR CHARACTERS NOT ON KEYBOARD.
  62.                     ; TAP IN SEQUENCE, ALT, A, E, GIVES Æ.
  63.  
  64. (operating-system
  65.   (bootloader (bootloader-configuration
  66.     (bootloader grub-efi-bootloader)
  67.     (targets (list "/UEFI"))
  68.     (keyboard-layout keyboard-layout)))
  69.  
  70.   (kernel linux)
  71.   (firmware (list linux-firmware))
  72.  
  73.   (host-name "1920")
  74.  
  75.   (timezone "America/New_York")
  76.   (locale "en_US.utf8")
  77.   (keyboard-layout keyboard-layout)
  78.  
  79.   (services (modify-services
  80.     (append %desktop-services (list
  81.       (bluetooth-service #:auto-enable? #t)
  82.       (service gnome-desktop-service-type)
  83.       (service libvirt-service-type)
  84.       (service virtlog-service-type)
  85.       (service xfce-desktop-service-type)
  86.       (service ladspa-service-type (ladspa-configuration
  87.         (plugins (list
  88.           swh-plugins))))
  89.       (service cups-service-type (cups-configuration
  90.         (web-interface? #t)
  91.         (extensions (list
  92.           hplip-minimal))))
  93.       (set-xorg-configuration (xorg-configuration
  94.         (keyboard-layout keyboard-layout)))))
  95.     (guix-service-type config => (guix-configuration
  96.       (inherit config)
  97.       (substitute-urls (append %default-substitute-urls (list
  98.         "HTTPS://SUBSTITUTES.NONGUIX.ORG")))
  99.       (authorized-keys (append %default-authorized-guix-keys (list
  100.         (local-file "KEYS/NONGUIX"))))))))
  101.  
  102.   (packages (append %base-packages (list
  103.     dmenu
  104.     i3-gaps
  105.     i3status
  106.     nss-certs)))
  107.  
  108.   (groups (append %base-groups (list
  109.     (user-group
  110.       (name "PRIVATE")
  111.       (system? #t)))))
  112.  
  113.   (users (append %base-user-accounts (list
  114.     (user-account
  115.       (name "MASON1920")
  116.       (group "users") ; MAN, UNMACHINE.
  117.       (home-directory "/MASON1920")
  118.       (supplementary-groups (list
  119.         "audio" ; PLAY SOUND
  120.         "kvm" ; HARDWARE ACCELERATED VIRTUALIZATION
  121.         "libvirt"
  122.         "lp" ; PRINTER
  123.         "netdev" ; NETWORK INTERFACE MANAGEMENT
  124.         "video" ; VIDEO INPUT (WEBCAM)
  125.         "wheel")))))) ; SUDO
  126.  
  127.   (file-systems (append %base-file-systems (list
  128.     (file-system
  129.       (mount-point "/")
  130.       (needed-for-boot? #t)
  131.       (device (uuid "9FB64C3D-4E54-4F9A-A5EE-7E333D52522C"))
  132.       (type "ext4"))
  133.     (file-system
  134.       (mount-point "/UEFI")
  135.       (device (uuid "90E9-220F" 'fat32))
  136.       (type "vfat")))))
  137.  
  138.   (swap-devices (list
  139.     (swap-space (target (uuid "4C7B0129-03AF-4D50-B77B-4B1AA82A6ADA"))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement