new and cool guix conig

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-04-11 04:05:40 -04:00
parent 1d91971524
commit 727f2a0e15
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
1 changed files with 55 additions and 28 deletions

View File

@ -1,21 +1,29 @@
(add-to-load-path "/etc/guix-config")
(use-modules
(gnu)
(gnu system nss))
(use-package-modules
certs
linux
wm)
(use-service-modules
desktop
networking
xorg
cups
ssh
dbus
virtualization
authentication)
(gnu system nss)
(gnu packages certs)
(gnu packages linux)
(gnu packages wm)
(gnu services desktop)
(gnu services networking)
(gnu services xorg)
(gnu services cups)
(gnu services ssh)
(gnu services dbus)
(gnu services virtualization)
(gnu services authentication)
(gnu services linux))
(define v4l2loopback-config
(plain-file "v4l2loopback.conf"
"options v4l2loopback video_nr=6,7,8,9 card_label=loopback0,loopback1,loopback2,loopback3 exclusive_caps=1"))
(operating-system
(kernel linux-libre)
(kernel-loadable-modules (list
v4l2loopback-linux-module))
(keyboard-layout (keyboard-layout "us" "altgr-intl"))
(bootloader
(bootloader-configuration
@ -48,7 +56,7 @@
(name "cobra")
(comment "Skylar \"The Cobra\" Widulski")
(group "users")
(supplementary-groups '("audio" "cdrom" "kvm" "lp" "netdev" "tape" "video" "wheel" "input"))))
(supplementary-groups '("audio" "cdrom" "kvm" "lp" "netdev" "tape" "video" "wheel" "input" "dialout"))))
%base-user-accounts))
(packages (append
(map specification->package
@ -65,7 +73,7 @@
"swaylock"
"openssh"
"i2pd"
"dbus"
;"dbus"
"cryptsetup"
"libdvdcss"
"libdvdread"
@ -79,12 +87,15 @@
"kicad-symbols"
"kicad-packages3d"
"kicad-footprints"
"kicad-doc"
;"kicad-doc"
"freecad"
"cura"
"gpx"
"mako"
"mesa"
"intel-vaapi-driver"
"qemu"
"at-spi2-core"
"fprintd"
"lvm2"
"git"
@ -102,7 +113,7 @@
"mpv"
"imagemagick"
"rsync"
"neofetch"
"hyfetch"
"gnunet"
"lm-sensors"
"acpi"
@ -111,6 +122,12 @@
"xclip"
"font-fira-mono"
"font-fira-code"
"font-fira-sans"
"font-liberation"
"font-google-noto"
"font-google-noto-serif-cjk"
"font-google-noto-sans-cjk"
"font-awesome"
"newsboat"
"kodi"
"yt-dlp"
@ -136,10 +153,6 @@
"cmus"
"python"
"openssl"
"font-google-noto"
"font-google-noto-serif-cjk"
"font-google-noto-sans-cjk"
"font-awesome"
"socat"
"emacs"
"mpv-mpris"
@ -156,7 +169,15 @@
"torsocks"
"alsa-utils"
"proxychains-ng"
"whois"))
"whois"
"microscheme"
"avr-toolchain"
"bluez"
"bluez"
"blueman"
"v4l2loopback-linux-module"
"pipewire"
"wireplumber"))
(cons*
%base-packages)))
(timezone "America/New_York")
@ -169,6 +190,9 @@
(permit-root-login 'prohibit-password)
(password-authentication? #f)))
(service network-manager-service-type)
(service bluetooth-service-type
(bluetooth-configuration
(auto-enable? #t)))
(service wpa-supplicant-service-type)
(service gpm-service-type)
(service ntp-service-type)
@ -176,19 +200,22 @@
(service elogind-service-type)
(service dbus-root-service-type)
(service fprintd-service-type)
(screen-locker-service swaylock)
(service screen-locker-service-type
(screen-locker-configuration
"swaylock" (file-append swaylock "/bin/swaylock") #f))
(service tor-service-type
(tor-configuration
(config-file (plain-file "tor-config"
"HTTPTunnelPort 127.0.0.1:9250"))))
; %base-services))
(service kernel-module-loader-service-type
'("v4l2loopback"))
(simple-service 'v4l2loopback etc-service-type
(list `("modprobe.d/v4l2loopback.conf"
,v4l2loopback-config)))
(modify-services %base-services
(guix-service-type
config => (guix-configuration
(inherit config)
;; ci.guix.gnu.org's Onion service
; (substitute-urls
; "https://4zwzi66wwdaalbhgnix55ea3ab4pvvw66ll2ow53kjub6se4q2bclcyd.onion")
(http-proxy "http://localhost:9250"))))))
(sudoers-file (plain-file "sudoers" "\
root ALL=(ALL) ALL