diff options
author | bd <bdunahu@colostate.edu> | 2024-05-26 02:49:56 -0600 |
---|---|---|
committer | bd <bdunahu@colostate.edu> | 2024-05-26 02:49:56 -0600 |
commit | 90cffef68fcdb7002250b4f0cbb8c8f68372f401 (patch) | |
tree | 8d6506ba1965da2a40fe73655344c33779c9611e /.config/guix/modules/ymir.scm | |
parent | 62f32ec1d67c4dc3942a760f28ab1483a6101328 (diff) |
Merge home/system packages (temp?), use system home service
Diffstat (limited to '.config/guix/modules/ymir.scm')
-rw-r--r-- | .config/guix/modules/ymir.scm | 169 |
1 files changed, 36 insertions, 133 deletions
diff --git a/.config/guix/modules/ymir.scm b/.config/guix/modules/ymir.scm index acea4b7..5b4a01d 100644 --- a/.config/guix/modules/ymir.scm +++ b/.config/guix/modules/ymir.scm @@ -5,23 +5,13 @@ (define-module (ymir) #:use-module (gnu) - #:use-module (dwm-custom) - #:use-module (gnu packages suckless) - #:use-module (gnu services) - #:use-module (gnu services admin) - #:use-module (gnu services audio) - #:use-module (gnu services avahi) - #:use-module (gnu services dbus) #:use-module (gnu services desktop) - #:use-module (gnu services file-sharing) - #:use-module (gnu services networking) - #:use-module (gnu services sound) - #:use-module (gnu services ssh) - #:use-module (gnu services xorg) - ) + #:use-module (gnu system) + #:export (username + user + ymir)) -;;;; user -(define-public username "bdunahu") +(define username "bdunahu") (define user (user-account (name username) (comment username) @@ -34,122 +24,35 @@ "wheel")))) -;;;; base os -(define-public ymir +(define ymir (operating-system - (host-name "ymir") - (locale "en_US.utf8") - (timezone "America/Denver") - (keyboard-layout (keyboard-layout "us")) - (kernel-arguments - (list - "quiet")) - - ;; 'root' is implicit - (users (cons* user - %base-user-accounts)) - - ;; grub (uefi) - (bootloader (bootloader-configuration - (bootloader grub-efi-bootloader) - (targets (list "/boot/efi")) - (keyboard-layout keyboard-layout))) - - ;; packages installed system-wide. - (packages `(,@(map specification->package - '( - "cryptsetup" - "curl" - "dmenu" - "emacs" - "git" - "gtk+" - "icecat" - "imagemagick" - "libnotify" - "mpd" - "mpd-mpc" - "pass-otp" - "password-store" - "pavucontrol" - "pinentry" - "pulseaudio" - "recutils" - "sxiv" - "vim" - )) - ,@%base-packages - ,dwm-packages)) - - ;; base system services. - (services - (cons* - (service openssh-service-type - (openssh-configuration - (x11-forwarding? #t) - (permit-root-login 'prohibit-password) - (password-authentication? #f))) - (service tor-service-type) - (service transmission-daemon-service-type) - (service mpd-service-type - (mpd-configuration - (user user) - (music-directory "~/Personal/mpd/music") - (playlist-directory "~/Personal/mpd/playlist") - (default-port 6600))) - - (service screen-locker-service-type - (screen-locker-configuration - (name "slock") - (program (file-append slock "/bin/slock")))) - - ;; so that non-root users in the wheel group can - ;; perform administrative tasks (similar to "sudo"). - polkit-wheel-service - ;; The global fontconfig cache directory can sometimes contain - ;; stale entries, possibly referencing fonts that have been GC'd, - ;; so mount it read-only. - fontconfig-file-system-service - - (service network-manager-service-type) - (service wpa-supplicant-service-type) ; needed by NetworkManager - ;; (simple-service 'network-manager-applet - ;; profile-service-type - ;; (list network-manager-applet)) - (service modem-manager-service-type) - (service usb-modeswitch-service-type) - - ;; The D-Bus clique. - (service avahi-service-type) - (service udisks-service-type) - (service upower-service-type) - (service accountsservice-service-type) - (service cups-pk-helper-service-type) - (service colord-service-type) - (service geoclue-service-type) - (service polkit-service-type) - (service elogind-service-type - (elogind-configuration - (handle-power-key 'hibernate) - ;; (idle-action-seconds (* 5 60)) - ;; (idle-action 'suspend) - )) - (service dbus-root-service-type) - - (service ntp-service-type) - - (service x11-socket-directory-service-type) - - (service pulseaudio-service-type) - (service alsa-service-type) - - %base-services)) - - ;; OVERRIDE ME - (file-systems (cons* - (file-system - (mount-point "/") - (device "none") - (type "tmpfs") - (check? #f)) - %base-file-systems)))) + (host-name "ymir") + (locale "en_US.utf8") + (timezone "America/Denver") + (keyboard-layout (keyboard-layout "us")) + (kernel-arguments + (list + "quiet")) + + ;; 'root' is implicit + (users (cons* user + %base-user-accounts)) + + ;; grub (uefi) + (bootloader (bootloader-configuration + (bootloader grub-efi-bootloader) + (targets (list "/boot/efi")) + (keyboard-layout keyboard-layout))) + + ;; OVERRIDE THESE + (packages + %base-packages) + (services + %base-services) + (file-systems (cons* + (file-system + (mount-point "/") + (device "none") + (type "tmpfs") + (check? #f)) + %base-file-systems)))) |