config/guix/system: Name operating systems.
parent
35320ff02e
commit
218520fd7a
|
@ -90,14 +90,14 @@ StrictNodes 1")
|
||||||
;; exfat-utils ; TODO: Needed for macOS drives? Does not seem to work.
|
;; exfat-utils ; TODO: Needed for macOS drives? Does not seem to work.
|
||||||
fuse-exfat
|
fuse-exfat
|
||||||
emacs-exwm
|
emacs-exwm
|
||||||
vhba-module
|
vhba-module ; For CDEmu.
|
||||||
%base-packages))
|
%base-packages))
|
||||||
|
|
||||||
(define-public %ambrevar/firmware
|
(define-public %ambrevar/firmware
|
||||||
(append ;; (list vhba-module) ; TODO: Useless?
|
(append ;; (list vhba-module) ; TODO: Useless?
|
||||||
%base-firmware))
|
%base-firmware))
|
||||||
|
|
||||||
(define-public default-operating-system
|
(define-public %ambrevar/default-os
|
||||||
(operating-system
|
(operating-system
|
||||||
(host-name "ambrevar-system")
|
(host-name "ambrevar-system")
|
||||||
(timezone "Europe/Paris")
|
(timezone "Europe/Paris")
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
;; With Eshell:
|
||||||
|
;; *sudo -E guix system -L ~/.config/guix/system reconfigure ~/.config/guix/system/desktop-bababa-emtec.scm
|
||||||
|
(define-module (desktop-bababa)
|
||||||
|
#:use-module (default)
|
||||||
|
#:use-module (gnu)
|
||||||
|
#:use-module (gnu system)
|
||||||
|
#:use-module (gnu services))
|
||||||
|
|
||||||
|
(operating-system
|
||||||
|
(inherit %bababa/os)
|
||||||
|
(services (cons*
|
||||||
|
;; TODO: Might need 9.6 for Iroha.
|
||||||
|
(postgresql-service)
|
||||||
|
(service docker-service-type)
|
||||||
|
(operating-system-services %bababa/os))))
|
|
@ -9,8 +9,6 @@
|
||||||
|
|
||||||
(use-service-modules
|
(use-service-modules
|
||||||
nix
|
nix
|
||||||
docker ; REVIEW: Needs 'modprobe overlay'?
|
|
||||||
databases ; PostgreSQL
|
|
||||||
;; libvirt:
|
;; libvirt:
|
||||||
virtualization)
|
virtualization)
|
||||||
|
|
||||||
|
@ -26,44 +24,44 @@
|
||||||
(service nix-service-type)
|
(service nix-service-type)
|
||||||
%ambrevar/services))
|
%ambrevar/services))
|
||||||
|
|
||||||
(operating-system
|
(define-public %bababa/os
|
||||||
(inherit default-operating-system)
|
(operating-system
|
||||||
(host-name "bababa")
|
(inherit %ambrevar/default-os)
|
||||||
|
(host-name "bababa")
|
||||||
|
|
||||||
(bootloader (bootloader-configuration
|
(bootloader (bootloader-configuration
|
||||||
(bootloader grub-bootloader)
|
(bootloader grub-bootloader)
|
||||||
(timeout 1)
|
(timeout 1)
|
||||||
(target "/dev/sdb")))
|
(target "/dev/sdb")))
|
||||||
|
|
||||||
(kernel linux)
|
(kernel linux)
|
||||||
(firmware (append (list amdgpu-firmware)
|
(firmware (append (list amdgpu-firmware)
|
||||||
%ambrevar/firmware))
|
%ambrevar/firmware))
|
||||||
|
|
||||||
(file-systems (cons* (file-system
|
(file-systems (cons* (file-system
|
||||||
(device (file-system-label "guixsd")) ; TODO: Change label to "guix".
|
(device (file-system-label "guixsd")) ; TODO: Change label to "guix".
|
||||||
(mount-point "/")
|
(mount-point "/")
|
||||||
(type "ext4"))
|
(type "ext4"))
|
||||||
(file-system
|
(file-system
|
||||||
(device (file-system-label "babadata"))
|
(device (file-system-label "babadata"))
|
||||||
(mount-point "/media/babadata")
|
(mount-point "/media/babadata")
|
||||||
(type "btrfs")
|
(type "btrfs")
|
||||||
(create-mount-point? #t))
|
(create-mount-point? #t))
|
||||||
(file-system
|
(file-system
|
||||||
(mount-point "/tmp")
|
(mount-point "/tmp")
|
||||||
(device "none")
|
(device "none")
|
||||||
(type "tmpfs")
|
(type "tmpfs")
|
||||||
(check? #f))
|
(check? #f))
|
||||||
%base-file-systems))
|
%base-file-systems))
|
||||||
|
|
||||||
(packages (cons* nix
|
(packages (cons* nix
|
||||||
stumpwm
|
stumpwm
|
||||||
(operating-system-packages default-operating-system)))
|
(operating-system-packages default-operating-system)))
|
||||||
|
|
||||||
(services (cons*
|
(services (cons*
|
||||||
(service libvirt-service-type
|
(service libvirt-service-type
|
||||||
(libvirt-configuration
|
(libvirt-configuration
|
||||||
(unix-sock-group "kvm")))
|
(unix-sock-group "kvm")))
|
||||||
;; TODO: Might need 9.6 for Iroha.
|
%bababa/services))))
|
||||||
(postgresql-service)
|
|
||||||
(service docker-service-type)
|
%bababa/os
|
||||||
%bababa/services)))
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ EndSection")
|
||||||
(extra-config (list %mimimi/xorg-touchpad)))))))))
|
(extra-config (list %mimimi/xorg-touchpad)))))))))
|
||||||
|
|
||||||
(operating-system
|
(operating-system
|
||||||
(inherit default-operating-system)
|
(inherit %ambrevar/default-os)
|
||||||
(host-name "mimimi")
|
(host-name "mimimi")
|
||||||
|
|
||||||
(kernel linux)
|
(kernel linux)
|
||||||
|
|
Loading…
Reference in New Issue