mirror of
https://git.in.rschanz.org/ryan77627/guix-config.git
synced 2024-11-07 10:36:15 -05:00
working base configuration
This commit is contained in:
parent
c04cedc5cf
commit
21a4d469b0
1 changed files with 116 additions and 109 deletions
|
@ -82,117 +82,124 @@
|
||||||
"RUN+=\"/run/current-system/profile/bin/chmod g+w /sys/class/backlight/%k/brightness\"")))
|
"RUN+=\"/run/current-system/profile/bin/chmod g+w /sys/class/backlight/%k/brightness\"")))
|
||||||
|
|
||||||
(define-public base-operating-system
|
(define-public base-operating-system
|
||||||
(operating-system
|
(operating-system
|
||||||
(kernel linux)
|
(kernel linux)
|
||||||
(firmware (list linux-firmware))
|
(firmware (list linux-firmware))
|
||||||
(locale "en_US.utf8")
|
(locale "en_US.utf8")
|
||||||
(timezone "America/New_York")
|
(timezone "America/New_York")
|
||||||
(keyboard-layout (keyboard-layout "us"))
|
(keyboard-layout (keyboard-layout "us"))
|
||||||
(host-name "ThisWillChange")
|
(host-name "ThisWillChange")
|
||||||
|
|
||||||
;; The list of user accounts ('root' is implicit).
|
;; The list of user accounts ('root' is implicit).
|
||||||
(users (cons* (user-account
|
(users (cons* (user-account
|
||||||
(name "ryan")
|
(name "ryan")
|
||||||
(comment "Ryan")
|
(comment "Ryan")
|
||||||
(group "users")
|
(group "users")
|
||||||
;(shell (file-append zsh "/bin/zsh"))
|
;(shell (file-append zsh "/bin/zsh"))
|
||||||
(home-directory "/home/ryan")
|
(home-directory "/home/ryan")
|
||||||
(supplementary-groups '("wheel" "netdev" "audio" "video" "lp" "plugdev" "docker" "libvirt" "kvm")))
|
(supplementary-groups '("wheel" "netdev" "audio" "video" "lp" "plugdev" "docker" "libvirt" "kvm")))
|
||||||
%base-user-accounts))
|
%base-user-accounts))
|
||||||
|
|
||||||
;; Packages installed system-wide. Users can also install packages
|
;; Packages installed system-wide. Users can also install packages
|
||||||
;; under their own account: use 'guix search KEYWORD' to search
|
;; under their own account: use 'guix search KEYWORD' to search
|
||||||
;; for packages and 'guix install PACKAGE' to install a package.
|
;; for packages and 'guix install PACKAGE' to install a package.
|
||||||
(packages (append (map specification->package (list "sway"
|
(packages (append (map specification->package (list "sway"
|
||||||
"swaybg"
|
"swaybg"
|
||||||
"swayidle"
|
"swayidle"
|
||||||
;"swaylock-effects"
|
;"swaylock-effects"
|
||||||
"fuzzel"
|
"fuzzel"
|
||||||
"alacritty"
|
"alacritty"
|
||||||
"pinentry-qt"
|
"pinentry-qt"
|
||||||
"adwaita-icon-theme"
|
"adwaita-icon-theme"
|
||||||
"hicolor-icon-theme"
|
"hicolor-icon-theme"
|
||||||
"git"
|
"git"
|
||||||
"nss-certs"
|
"nss-certs"
|
||||||
"waybar"
|
"waybar"
|
||||||
"gnupg"
|
"gnupg"
|
||||||
"light"
|
"light"
|
||||||
"mako"
|
"mako"
|
||||||
"grim"
|
"grim"
|
||||||
"slurp"
|
"slurp"
|
||||||
"wl-clipboard"
|
"wl-clipboard"
|
||||||
"bluez"
|
"bluez"
|
||||||
"blueman"
|
"blueman"
|
||||||
"ldacbt"
|
"ldacbt"
|
||||||
"libfreeaptx"
|
"libfreeaptx"
|
||||||
"libfdk"
|
"libfdk"
|
||||||
"opendoas"
|
"opendoas"
|
||||||
;"xdg-desktop-portal-wlr"
|
;"xdg-desktop-portal-wlr"
|
||||||
"xdg-desktop-portal"
|
"xdg-desktop-portal"
|
||||||
"pipewire"
|
"pipewire"
|
||||||
"docker"
|
"docker"
|
||||||
"libvirt"
|
"libvirt"
|
||||||
"virt-manager"
|
"virt-manager"
|
||||||
"wireplumber"
|
"wireplumber"
|
||||||
"zsh"))
|
"zsh"))
|
||||||
(list my-ca-certs xdg-desktop-portal-wlr-new swaylock-effects-new)
|
(list my-ca-certs xdg-desktop-portal-wlr-new swaylock-effects-new)
|
||||||
%my-base-packages ))
|
%my-base-packages ))
|
||||||
|
|
||||||
;; Below is the list of system services. To search for available
|
;; Below is the list of system services. To search for available
|
||||||
;; services, run 'guix system search KEYWORD' in a terminal.
|
;; services, run 'guix system search KEYWORD' in a terminal.
|
||||||
(services
|
(services
|
||||||
(append (list
|
(append (list
|
||||||
|
|
||||||
;; To configure OpenSSH, pass an 'openssh-configuration'
|
;; To configure OpenSSH, pass an 'openssh-configuration'
|
||||||
;; record as a second argument to 'service' below.
|
;; record as a second argument to 'service' below.
|
||||||
(service openssh-service-type)
|
(service openssh-service-type)
|
||||||
(service pcscd-service-type)
|
(service pcscd-service-type)
|
||||||
(service docker-service-type)
|
(service docker-service-type)
|
||||||
(service nix-service-type)
|
(service nix-service-type)
|
||||||
(service libvirt-service-type
|
(service libvirt-service-type
|
||||||
(libvirt-configuration
|
(libvirt-configuration
|
||||||
(unix-sock-group "libvirt")))
|
(unix-sock-group "libvirt")))
|
||||||
(service bluetooth-service-type)
|
(service bluetooth-service-type)
|
||||||
(udev-rules-service 'fido2 libfido2 #:groups '("plugdev")))
|
(udev-rules-service 'fido2 libfido2 #:groups '("plugdev")))
|
||||||
|
|
||||||
;; This is the default list of services we
|
;; This is the default list of services we
|
||||||
;; are appending to.
|
;; are appending to.
|
||||||
(modify-services %desktop-services
|
(modify-services %desktop-services
|
||||||
(guix-service-type config =>
|
(guix-service-type config =>
|
||||||
(guix-configuration
|
(guix-configuration
|
||||||
(inherit config)
|
(inherit config)
|
||||||
(substitute-urls
|
(substitute-urls
|
||||||
(append (list "https://substitutes.nonguix.org")
|
(append (list "https://substitutes.nonguix.org")
|
||||||
%default-substitute-urls))
|
%default-substitute-urls))
|
||||||
(authorized-keys
|
(authorized-keys
|
||||||
(cons* (plain-file "non-guix.pub"
|
(cons* (plain-file "non-guix.pub"
|
||||||
"(public-key
|
"(public-key
|
||||||
(ecc
|
(ecc
|
||||||
(curve Ed25519)
|
(curve Ed25519)
|
||||||
(q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)
|
(q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)
|
||||||
)
|
)
|
||||||
)" ) %default-authorized-guix-keys))))
|
)" ) %default-authorized-guix-keys))))
|
||||||
(udev-service-type config =>
|
(udev-service-type config =>
|
||||||
(udev-configuration
|
(udev-configuration
|
||||||
(inherit config)
|
(inherit config)
|
||||||
(rules (cons %backlight-udev-rule
|
(rules (cons %backlight-udev-rule
|
||||||
(udev-configuration-rules config)))))
|
(udev-configuration-rules config)))))
|
||||||
(delete pulseaudio-service-type)
|
(delete pulseaudio-service-type)
|
||||||
(delete gdm-service-type)
|
(delete gdm-service-type)
|
||||||
(delete xorg-server-service-type)
|
(delete xorg-server-service-type)
|
||||||
(delete alsa-service-type) )))
|
(delete alsa-service-type) )))
|
||||||
(setuid-programs
|
(setuid-programs
|
||||||
(append (list (file-like->setuid-program
|
(append (list (file-like->setuid-program
|
||||||
(file-append
|
(file-append
|
||||||
;(specification->package "swaylock-effects")
|
;(specification->package "swaylock-effects")
|
||||||
swaylock-effects-new
|
swaylock-effects-new
|
||||||
"/bin/swaylock"))
|
"/bin/swaylock"))
|
||||||
(file-like->setuid-program
|
(file-like->setuid-program
|
||||||
(file-append
|
(file-append
|
||||||
(specification->package "opendoas")
|
(specification->package "opendoas")
|
||||||
"/bin/doas")))
|
"/bin/doas")))
|
||||||
(delete sudo %setuid-programs)))
|
(delete sudo %setuid-programs)))
|
||||||
(bootloader (bootloader-configuration
|
(file-systems (cons*
|
||||||
(bootloader grub-efi-bootloader)
|
(file-system
|
||||||
(targets (list "/boot/efi"))
|
(mount-point "/tmp")
|
||||||
(keyboard-layout keyboard-layout)))))))))
|
(device "none")
|
||||||
|
(type "tmpfs")
|
||||||
|
(check? #f))
|
||||||
|
%base-file-systems))
|
||||||
|
(bootloader (bootloader-configuration
|
||||||
|
(bootloader grub-efi-bootloader)
|
||||||
|
(targets (list "/boot/efi"))
|
||||||
|
(keyboard-layout keyboard-layout)))))
|
Loading…
Reference in a new issue