diff options
author | bd <bdunahu@gmail.com> | 2024-01-04 02:34:41 -0700 |
---|---|---|
committer | bd <bdunahu@gmail.com> | 2024-01-04 02:34:41 -0700 |
commit | b0ba84d2a7a3522932bb38c4babcbd65a529cfdd (patch) | |
tree | e673bae3a6ae49b8906a39c55ff77bcdba309c64 | |
parent | b86bb237bbedbf24cf100933a920af40bd485c1b (diff) |
Added current system file.
-rw-r--r-- | .config/guix-builds/system-config.scm | 85 | ||||
-rw-r--r--[l---------] | .config/guix-builds/vali-config.scm | 12 | ||||
-rw-r--r-- | .gitignore | 1 |
3 files changed, 96 insertions, 2 deletions
diff --git a/.config/guix-builds/system-config.scm b/.config/guix-builds/system-config.scm new file mode 100644 index 0000000..7cd59fd --- /dev/null +++ b/.config/guix-builds/system-config.scm @@ -0,0 +1,85 @@ +;; add this directory to the load path. +(add-to-load-path (dirname (current-filename))) + +;; Indicate which modules to import to access the variables +;; used in this configuration. +(use-modules (gnu) + (host-instance)) +(use-service-modules audio desktop networking ssh xorg) + +(define user (user-account + (name username) + (comment username) + (group "users") + (home-directory (string-append "/home/" username)) + (supplementary-groups '("wheel" "netdev" "audio" "video")))) + +(operating-system + (locale "en_US.utf8") + (timezone "America/Denver") + (keyboard-layout (keyboard-layout "us")) + (host-name host-name) + + ;; The list of user accounts ('root' is implicit). + (users (cons* user + %base-user-accounts)) + + ;; Packages installed system-wide. + (packages (append (map specification->package + '("emacs" + "emacs-exwm" + "emacs-desktop-environment" + "git" + "imagemagick" + "mpd" + "mpd-mpc" + "nss-certs" + "picom" + "pulseaudio" + "vim" + "xmodmap")) + %base-packages)) + + ;; List of system services. + (services + (append (list + + (service openssh-service-type) + (service tor-service-type) + (service mpd-service-type + (mpd-configuration + (user user) + (music-directory "~/Personal/mpd/music") + (playlist-directory "~/Personal/mpd/playlist") + (default-port 6600))) + (set-xorg-configuration + (xorg-configuration (keyboard-layout keyboard-layout)))) + + ;; This is the default list of services we + ;; are appending to. + %desktop-services)) + (bootloader (bootloader-configuration + (bootloader grub-efi-bootloader) + (targets (list "/boot/efi")) + (keyboard-layout keyboard-layout))) + + ;; List of file systems that get "mounted". ("UUIDs") can + ;; be obtained by running 'blkid'. + (file-systems (cons* (file-system + (mount-point "/boot/efi") + (device (uuid + boot-part + 'fat32)) + (type "vfat")) + (file-system + (mount-point "/home/bdunahu/Personal") + (device (uuid + hide-part + 'ext4)) + (type "ext4")) + (file-system + (mount-point "/") + (device (uuid + root-part + 'ext4)) + (type "ext4")) %base-file-systems))) diff --git a/.config/guix-builds/vali-config.scm b/.config/guix-builds/vali-config.scm index 9182825..cebcbd1 120000..100644 --- a/.config/guix-builds/vali-config.scm +++ b/.config/guix-builds/vali-config.scm @@ -1 +1,11 @@ -system-config.scm
\ No newline at end of file +;; vali (laptop) specific variables +;; (use-modules (gnu)) + +(define-module (host-instance) + #:export (username host-name root-part boot-part hide-part)) + +(define username "bdunahu") +(define host-name "vali") +(define root-part "69a3593b-12bd-40ad-a932-007674a8cfe8") +(define boot-part "8A13-7018") +(define hide-part "020b73df-3991-4271-9d3f-dba00ad260ec") @@ -1,2 +1 @@ -/.config/guix-builds/system-config.scm /.config/guix-builds/host-instance.scm |