Generalize base system config

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-06-09 01:30:38 -04:00
parent 02397c2651
commit 2b083ee468
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
2 changed files with 4 additions and 22 deletions

View File

@ -7,7 +7,7 @@
#:use-module (guix gexp)
#:use-module (cobra packages)
#:use-module (cobra lists)
#:export (%thinkpad))
#:export (%base-guix-system))
(define sudoers
(plain-file "sudoers" "\
@ -17,7 +17,7 @@ Cmnd_Alias WITHOUTPW = /home/cobra/.local/bin/__suspend, /home/cobra/.local/bin/
Defaults!WITHOUTPW !authenticate
"))
(define %thinkpad
(define %base-guix-system
(operating-system
(kernel linux-libre)
(kernel-loadable-modules (list v4l2loopback-linux-module))
@ -32,25 +32,7 @@ Defaults!WITHOUTPW !authenticate
(installer #~(const #t))))
(keyboard-layout keyboard-layout)))
(host-name "Noble-Gas")
(mapped-devices (list
(mapped-device
(source (uuid "00000000-0000-0000-0000-000000000000"))
(target "fde")
(type luks-device-mapping))
(mapped-device
(source "matrix")
(targets (list "matrix-rootvol"))
(type lvm-device-mapping))))
(file-systems (append (list
(file-system
(type "btrfs")
(mount-point "/")
(device (file-system-label "root"))
(flags '(no-atime))
(options "space_cache=v2")
(needed-for-boot? #t)
(dependencies mapped-devices)))
%base-file-systems))
(file-systems %base-file-systems)
(users (append (list
(user-account
(name "cobra")

View File

@ -2,7 +2,7 @@
(use-modules (gnu) (cobra os))
(operating-system
(inherit %thinkpad)
(inherit %base-guix-system)
(host-name "Oganesson")
(mapped-devices (list
(mapped-device