Guest User

Untitled

a guest
Apr 26th, 2025
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 4.98 KB | None | 0 0
  1. (use-modules (gnu)
  2.              (nongnu packages linux)
  3.              (gnu packages linux)
  4.              (gnu packages audio)
  5.              (gnu packages networking)
  6.              (gnu packages package-management))
  7.  
  8. (use-service-modules cups
  9.              desktop
  10.              networking
  11.              ssh
  12.              xorg
  13.              sound
  14.              nix
  15.              docker
  16.              )
  17.  
  18.  
  19. ;;non-guix key for substitute urls
  20. (define %nonguix-key
  21.   (plain-file
  22.    "nonguix-archive-key.pub"
  23.    "(public-key
  24.    (ecc
  25.     (curve Ed25519)
  26.     (q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)))"))
  27.  
  28.  
  29. (operating-system
  30.  (kernel linux)
  31.  (firmware (list linux-firmware
  32.                  iwlwifi-firmware))
  33.  ;; Add this to make sure the module gets loaded at boot time
  34.  (initrd-modules (append '("btusb") %base-initrd-modules))
  35.  (locale "en_US.utf8")
  36.  (timezone "America/Santiago")
  37.  (keyboard-layout (keyboard-layout "us"))
  38.  (host-name "juanpablo")
  39.  
  40.  ;; The list of user accounts ('root' is implicit).
  41.  (users (cons* (user-account
  42.                 (name "juanpablo")
  43.                 (comment "Juan Pablo")
  44.                 (group "users")
  45.                 (home-directory "/home/juanpablo")
  46.                 (supplementary-groups '("wheel" "netdev" "audio" "video")))
  47.                %base-user-accounts))
  48.  
  49.  ;; Packages installed system-wide.  Users can also install packages
  50.  ;; under their own account: use 'guix search KEYWORD' to search
  51.  ;; for packages and 'guix install PACKAGE' to install a package.
  52.  (packages (append (list (specification->package "emacs")
  53.                          (specification->package "emacs-exwm")
  54.                          (specification->package "emacs-desktop-environment")
  55.                          (specification->package "bluez")
  56.                          (specification->package "blueman")
  57.                          (specification->package "pipewire")
  58.                          (specification->package "wireplumber")
  59.                          (specification->package "nix")
  60.              (specification->package "docker")
  61.              )
  62.                    %base-packages)
  63.        )
  64.  
  65.  
  66.  ;; Below is the list of system services.  To search for available
  67.  ;; services, run 'guix system search KEYWORD' in a terminal.
  68.  (services
  69.   (append (list (service gnome-desktop-service-type)
  70.                 ;; To configure OpenSSH, pass an 'openssh-configuration'
  71.                 ;; record as a second argument to 'service' below.
  72.                 (service openssh-service-type)
  73.                 (service cups-service-type)
  74.                 (service nix-service-type)
  75.                 (set-xorg-configuration
  76.                  (xorg-configuration
  77.                   (keyboard-layout keyboard-layout)))
  78.                 (service bluetooth-service-type
  79.                          (bluetooth-configuration
  80.                           (auto-enable? #t)))
  81.         (service docker-service-type)
  82.         (service containerd-service-type)
  83.         )
  84.      
  85.           ;; Add the Nonguix substitutes configuration
  86.           (modify-services %desktop-services
  87.                            (guix-service-type config =>
  88.                                               (guix-configuration
  89.                                                (inherit config)
  90.                                                (authorize-key? #t)
  91.                                                (discover? #t)
  92.                                                (authorized-keys
  93.                                                 (append (list %nonguix-key)
  94.                                                         %default-authorized-guix-keys))
  95.                                                (substitute-urls
  96.                                                 (append
  97.                                                  (list "https://substitutes.nonguix.org"
  98.                                                        "https://ci.guix.gnu.org"
  99.                                                        "https://bordeaux.guix.gnu.org")
  100.                                                  %default-substitute-urls))))
  101.                )
  102.       )
  103.  )
  104.  
  105.  (bootloader (bootloader-configuration
  106.               (bootloader grub-efi-bootloader)
  107.               (targets (list "/boot/efi"))
  108.               (keyboard-layout keyboard-layout)))
  109.  (swap-devices (list (swap-space
  110.                       (target (uuid
  111.                                "939e1958-ff51-429b-8934-0508c120af98")))))
  112.  
  113.  ;; The list of file systems that get "mounted".  The unique
  114.  ;; file system identifiers there ("UUIDs") can be obtained
  115.  ;; by running 'blkid' in a terminal.
  116.  (file-systems (cons* (file-system
  117.                        (mount-point "/boot/efi")
  118.                        (device (uuid "1EB2-58A7"
  119.                                      'fat32))
  120.                        (type "vfat"))
  121.                       (file-system
  122.                        (mount-point "/")
  123.                        (device (uuid
  124.                                 "38524a9a-825a-4794-9464-7acb796d2dac"
  125.                                 'ext4))
  126.                        (type "ext4")) %base-file-systems)))
  127.  
Advertisement
Add Comment
Please, Sign In to add comment