summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2021-12-30 18:37:12 -0500
committerRobby Zambito <contact@robbyzambito.me>2021-12-30 18:37:12 -0500
commitdb74fbb8a69ce43ec46d23863d6b9eed295f13b4 (patch)
treeb2a012a5b096a2cf755249768fff1d58b377ccc7
Add initial system definition
-rw-r--r--system-config.scm95
1 files changed, 95 insertions, 0 deletions
diff --git a/system-config.scm b/system-config.scm
new file mode 100644
index 0000000..7183130
--- /dev/null
+++ b/system-config.scm
@@ -0,0 +1,95 @@
+(use-modules (gnu)
+ (guix channels)
+ (guix inferior)
+ (srfi srfi-1))
+
+(use-service-modules
+ desktop
+ ssh
+ virtualization)
+
+(use-package-modules admin
+ certs
+ gnome
+ rsync
+ search
+ ncurses
+ version-control
+ vim)
+
+;; Import nonfree linux module.
+(use-modules (nongnu packages linux)
+ (nongnu system linux-initrd))
+
+
+(operating-system
+ (locale "en_US.utf8")
+ (timezone "America/New_York")
+ (keyboard-layout (keyboard-layout "us"))
+ (host-name "beef")
+ (kernel
+ (let*
+ ((channels
+ (list (channel
+ (name 'nonguix)
+ (url "https://gitlab.com/nonguix/nonguix")
+ (commit "f3a7d45740cbb7c91a5369c3992a4e8288cbc563"))
+ (channel
+ (name 'guix)
+ (url "https://git.savannah.gnu.org/git/guix.git")
+ (commit "30b67fdb6a7be8d7ebb2a5efeb06bfef76ff9e0e"))))
+ (inferior
+ (inferior-for-channels channels)))
+ (first (lookup-inferior-packages inferior "linux" "5.14.16"))))
+ (initrd microcode-initrd)
+ (firmware (list linux-firmware))
+ (users (cons* (user-account
+ (name "robby")
+ (comment "Robby Zambito")
+ (group "users")
+ (home-directory "/home/robby")
+ (supplementary-groups
+ '("wheel" "netdev" "audio" "video")))
+ %base-user-accounts))
+ (packages
+ (append
+ (list git
+ gvfs
+ htop
+ ncurses
+ neovim
+ nss-certs
+ plocate
+ rsync)
+ %base-packages))
+ (services
+ (append
+ (list (service openssh-service-type)
+ (service tor-service-type)
+ (service network-manager-service-type)
+ (service wpa-supplicant-service-type)
+ (service qemu-binfmt-service-type
+ (qemu-binfmt-configuration
+ (platforms (lookup-qemu-platforms "arm" "aarch64")))))
+ (remove (lambda (service)
+ (eq? (service-kind service) gdm-service-type))
+ %desktop-services)))
+ (bootloader
+ (bootloader-configuration
+ (bootloader grub-bootloader)
+ (targets '("/dev/sda"))
+ (keyboard-layout keyboard-layout)))
+ (sway-devices (list
+ (swap-space (target (uuid "5fe52356-c4c9-4ec1-bb2e-4c140a6cf873")))))
+ (file-systems
+ (cons* (file-system
+ (mount-point "/boot/efi")
+ (device (uuid "CD9A-4F7B" 'fat32))
+ (type "vfat"))
+ (file-system
+ (mount-point "/")
+ (device
+ (uuid "20f41ca6-361c-41b7-b522-1a683c4cf8e4"
+ 'ext4))
+ (type "ext4"))
+ %base-file-systems)))