From 7aaa88c290bfd2b66f60c8c40393ed7bd25f4e5c Mon Sep 17 00:00:00 2001 From: Hashirama Date: Thu, 11 Jan 2024 14:51:39 -0400 Subject: [PATCH] the barebones --- channels.scm | 12 +++++++ config.scm | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 channels.scm create mode 100644 config.scm diff --git a/channels.scm b/channels.scm new file mode 100644 index 0000000..0cf0e3d --- /dev/null +++ b/channels.scm @@ -0,0 +1,12 @@ + + +(cons* (channel + (name 'nonguix) + (url "https://gitlab.com/nonguix/nonguix") + ;; Enable signature verification: + (introduction + (make-channel-introduction + "897c1a470da759236cc11798f4e0a5f7d4d59fbc" + (openpgp-fingerprint + "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5")))) + %default-channels) diff --git a/config.scm b/config.scm new file mode 100644 index 0000000..7cbf24e --- /dev/null +++ b/config.scm @@ -0,0 +1,98 @@ +;; This is an operating system configuration generated +;; by the graphical installer. +;; +;; Once installation is complete, you can learn and modify +;; this file to tweak the system configuration, and pass it +;; to the 'guix system reconfigure' command to effect your +;; changes. + + +;; Indicate which modules to import to access the variables +;; used in this configuration. +(use-modules +(gnu) +(guix packages) +(gnu services) +(gnu packages file-systems) +(nongnu packages linux) +(nongnu system linux-initrd)) + + +(use-service-modules cups desktop networking ssh xorg linux) +(use-package-modules linux ) +(define my-kernel linux-6.1) +(define my-zfs + (package + (inherit zfs) + (arguments + (cons* #:linux my-kernel + (package-arguments zfs))))) + +(operating-system + (kernel my-kernel) + (initrd microcode-initrd) + (firmware (list linux-firmware)) + + + (locale "en_US.utf8") + (timezone "America/Manaus") + (keyboard-layout (keyboard-layout "us")) + (host-name "lisp-machine") + (kernel-loadable-modules (list (list my-zfs "module"))) + + ;; The list of user accounts ('root' is implicit). + (users (cons* (user-account + (name "hashirama") + (comment "Hashirama") + (group "users") + (home-directory "/home/hashirama") + (supplementary-groups '("wheel" "netdev" "audio" "video"))) + %base-user-accounts)) + + ;; Packages installed system-wide. Users can also install packages + ;; under their own account: use 'guix search KEYWORD' to search + ;; for packages and 'guix install PACKAGE' to install a package. + (packages (append (list + my-zfs + linux-firmware + (specification->package "nss-certs")) + %base-packages)) + + + ;; Below is the list of system services. To search for available + ;; services, run 'guix system search KEYWORD' in a terminal. + (services + (append (list (simple-service 'my-zfs-loader + kernel-module-loader-service-type + '("zfs")) + (service xfce-desktop-service-type) + (set-xorg-configuration + (xorg-configuration (keyboard-layout keyboard-layout)))) + %desktop-services)) + + (bootloader (bootloader-configuration + (bootloader grub-efi-bootloader) + (targets (list "/boot/efi")) + (keyboard-layout keyboard-layout))) + (swap-devices (list (swap-space + (target (uuid + "479519ae-93ba-4b0d-89ae-534d26273d51"))))) + + ;; The list of file systems that get "mounted". The unique + ;; file system identifiers there ("UUIDs") can be obtained + ;; by running 'blkid' in a terminal. + (file-systems (cons* (file-system + (mount-point "/boot/efi") + (device (uuid "CA39-E5B8" + 'fat32)) + (type "vfat")) + (file-system + (mount-point "/") + (device (uuid + "b3dfa6d0-c592-40e4-8c08-535deee429f9" + 'ext4)) + (type "ext4")) %base-file-systems))) + + + +