Prepare config to become more modular
This commit is contained in:
parent
e2aaa102c1
commit
2c9ca78162
3 changed files with 381 additions and 351 deletions
|
@ -1,14 +1,22 @@
|
|||
* Sanderson config
|
||||
|
||||
** Main system
|
||||
|
||||
#+begin_src scheme :tangle sanderson.scm
|
||||
:PROPERTIES:
|
||||
:header-args:scheme: :tangle sanderson.scm
|
||||
:END:
|
||||
*** Module imports
|
||||
#+begin_src scheme
|
||||
(use-modules (gnu)
|
||||
(nongnu packages linux)
|
||||
(nongnu system linux-initrd)
|
||||
(gnu packages cups)
|
||||
(nongnu packages printers))
|
||||
(use-service-modules cups desktop networking ssh syncthing xorg)
|
||||
#+end_src
|
||||
|
||||
*** Main OS config
|
||||
#+begin_src scheme
|
||||
|
||||
(operating-system
|
||||
(kernel linux)
|
||||
(initrd microcode-initrd)
|
||||
|
@ -26,14 +34,19 @@
|
|||
(home-directory "/home/skylar")
|
||||
(supplementary-groups '("wheel" "netdev" "audio" "video")))
|
||||
%base-user-accounts))
|
||||
#+end_src
|
||||
|
||||
*** System packages
|
||||
#+begin_src scheme
|
||||
;; Packages installed system-wide. Users can also install packages
|
||||
;; under their own account: use 'guix search KEYWORD' to search
|
||||
;; for packages and 'guix install PACKAGE' to install a package.
|
||||
(packages (append (specifications->packages (list "nss-certs"
|
||||
"stumpwm"))
|
||||
(packages (append (specifications->packages (list "nss-certs"))
|
||||
%base-packages))
|
||||
#+end_src
|
||||
|
||||
*** Services
|
||||
#+begin_src scheme
|
||||
;; Below is the list of system services. To search for available
|
||||
;; services, run 'guix system search KEYWORD' in a terminal.
|
||||
(services
|
||||
|
@ -60,7 +73,10 @@
|
|||
'("vtt.skylarhill.me"))
|
||||
(host "192.168.254.167" "files"
|
||||
'("files.skylarhill.me")))))
|
||||
#+end_src
|
||||
|
||||
*** nonguix substitutes
|
||||
#+begin_src scheme
|
||||
;; This is the default list of services we
|
||||
;; are appending to.
|
||||
(modify-services %desktop-services
|
||||
|
@ -72,6 +88,10 @@
|
|||
(authorized-keys
|
||||
(append (list (local-file "./signing-key.pub"))
|
||||
%default-authorized-guix-keys)))))))
|
||||
#+end_src
|
||||
|
||||
*** Filesystem and partition config
|
||||
#+begin_src scheme
|
||||
(bootloader (bootloader-configuration
|
||||
(bootloader grub-bootloader)
|
||||
(targets (list "/dev/sda"))
|
||||
|
@ -92,8 +112,11 @@
|
|||
#+end_src
|
||||
|
||||
** Home configuration
|
||||
|
||||
#+begin_src scheme :tangle home/sanderson.scm
|
||||
:PROPERTIES:
|
||||
:header-args:scheme: :tangle home/sanderson.scm
|
||||
:END:
|
||||
*** Module imports
|
||||
#+begin_src scheme
|
||||
(use-modules (gnu home)
|
||||
(gnu home services)
|
||||
(gnu packages)
|
||||
|
@ -109,7 +132,10 @@
|
|||
(guix packages)
|
||||
(gnu home services shells)
|
||||
(gnu home services gnupg))
|
||||
#+end_src
|
||||
|
||||
*** Home packages
|
||||
#+begin_src scheme
|
||||
(home-environment
|
||||
;; Below is the list of packages that will show up in your
|
||||
;; Home profile, under ~/.guix-home/profile.
|
||||
|
@ -159,7 +185,10 @@
|
|||
"unzip"
|
||||
"xclip"
|
||||
"zoom")))
|
||||
#+end_src
|
||||
|
||||
*** Home services
|
||||
#+begin_src scheme
|
||||
;; Below is the list of Home services. To search for available
|
||||
;; services, run 'guix home search KEYWORD' in a terminal.
|
||||
(services
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
(gnu packages cups)
|
||||
(nongnu packages printers))
|
||||
(use-service-modules cups desktop networking ssh syncthing xorg)
|
||||
|
||||
(operating-system
|
||||
(kernel linux)
|
||||
(initrd microcode-initrd)
|
||||
|
@ -25,8 +26,7 @@
|
|||
;; Packages installed system-wide. Users can also install packages
|
||||
;; under their own account: use 'guix search KEYWORD' to search
|
||||
;; for packages and 'guix install PACKAGE' to install a package.
|
||||
(packages (append (specifications->packages (list "nss-certs"
|
||||
"stumpwm"))
|
||||
(packages (append (specifications->packages (list "nss-certs"))
|
||||
%base-packages))
|
||||
|
||||
;; Below is the list of system services. To search for available
|
||||
|
@ -67,6 +67,7 @@
|
|||
(authorized-keys
|
||||
(append (list (local-file "./signing-key.pub"))
|
||||
%default-authorized-guix-keys)))))))
|
||||
|
||||
(bootloader (bootloader-configuration
|
||||
(bootloader grub-bootloader)
|
||||
(targets (list "/dev/sda"))
|
||||
|
|
Loading…
Reference in a new issue