2022-11-23 20:18:02 +00:00
|
|
|
(use-modules
|
|
|
|
(gnu)
|
2022-12-02 02:34:44 +00:00
|
|
|
(gnu system nss))
|
2022-11-23 20:18:02 +00:00
|
|
|
(use-package-modules
|
|
|
|
certs
|
|
|
|
linux
|
2022-12-02 02:34:44 +00:00
|
|
|
wm)
|
2022-11-23 20:18:02 +00:00
|
|
|
(use-service-modules
|
|
|
|
desktop
|
|
|
|
networking
|
|
|
|
xorg
|
|
|
|
cups
|
|
|
|
ssh
|
2022-12-31 19:57:10 +00:00
|
|
|
dbus
|
2023-01-01 00:30:37 +00:00
|
|
|
virtualization
|
|
|
|
authentication)
|
2022-11-23 20:18:02 +00:00
|
|
|
(operating-system
|
|
|
|
(kernel linux-libre)
|
|
|
|
(keyboard-layout (keyboard-layout "us" "altgr-intl"))
|
|
|
|
(bootloader
|
2022-12-06 12:56:03 +00:00
|
|
|
(bootloader-configuration
|
|
|
|
(bootloader (bootloader
|
|
|
|
(inherit grub-bootloader)
|
2022-12-02 02:34:44 +00:00
|
|
|
(installer #~(const #t))))
|
2022-12-06 12:56:03 +00:00
|
|
|
(keyboard-layout keyboard-layout)))
|
2022-12-31 19:57:10 +00:00
|
|
|
(host-name "Xenon")
|
2022-11-23 20:18:02 +00:00
|
|
|
(mapped-devices (list
|
2022-12-06 12:56:03 +00:00
|
|
|
(mapped-device
|
2022-12-02 02:34:44 +00:00
|
|
|
(source (uuid "e836ef6e-97a8-442b-a025-e81ab58bbc04"))
|
|
|
|
(target "fde")
|
|
|
|
(type luks-device-mapping))
|
|
|
|
(mapped-device
|
|
|
|
(source "matrix")
|
2023-01-12 20:22:25 +00:00
|
|
|
(targets (list "matrix-rootvol"))
|
2022-12-06 12:56:03 +00:00
|
|
|
(type lvm-device-mapping))))
|
2022-11-23 20:18:02 +00:00
|
|
|
(file-systems (append (list
|
2022-12-06 12:56:03 +00:00
|
|
|
(file-system
|
2022-12-02 02:34:44 +00:00
|
|
|
(type "btrfs")
|
|
|
|
(mount-point "/")
|
|
|
|
(device (file-system-label "root"))
|
|
|
|
(flags '(no-atime))
|
|
|
|
(options "space_cache=v2")
|
|
|
|
(needed-for-boot? #t)
|
|
|
|
(dependencies mapped-devices)))
|
2022-12-06 12:56:03 +00:00
|
|
|
%base-file-systems))
|
2022-11-23 20:18:02 +00:00
|
|
|
(users (append (list
|
2022-12-06 12:56:03 +00:00
|
|
|
(user-account
|
2022-12-02 02:34:44 +00:00
|
|
|
(name "cobra")
|
|
|
|
(comment "Skylar \"The Cobra\" Widulski")
|
|
|
|
(group "users")
|
2023-01-10 07:27:46 +00:00
|
|
|
(supplementary-groups '("audio" "cdrom" "kvm" "lp" "netdev" "tape" "video" "wheel" "input"))))
|
2022-12-06 12:56:03 +00:00
|
|
|
%base-user-accounts))
|
2022-11-23 20:18:02 +00:00
|
|
|
(packages (append
|
2022-12-06 12:56:03 +00:00
|
|
|
(map specification->package
|
|
|
|
(list "nss-certs"
|
|
|
|
"tor"
|
2022-12-02 02:34:44 +00:00
|
|
|
"vim"
|
|
|
|
"screen"
|
|
|
|
"lynx"
|
|
|
|
"curl"
|
|
|
|
"wget"
|
|
|
|
"net-tools"
|
|
|
|
"sway"
|
|
|
|
"waybar"
|
|
|
|
"swaylock"
|
|
|
|
"openssh"
|
|
|
|
"i2pd"
|
|
|
|
"dbus"
|
|
|
|
"cryptsetup"
|
|
|
|
"libdvdcss"
|
|
|
|
"libdvdread"
|
|
|
|
"gcc-toolchain"
|
|
|
|
"gcc"
|
|
|
|
"librsvg"
|
2022-12-06 12:56:03 +00:00
|
|
|
"json-c"
|
2023-01-10 07:27:46 +00:00
|
|
|
"libnotify"
|
|
|
|
"kicad"
|
|
|
|
"kicad-templates"
|
|
|
|
"kicad-symbols"
|
|
|
|
"kicad-packages3d"
|
|
|
|
"kicad-footprints"
|
|
|
|
"kicad-doc"
|
|
|
|
"freecad"
|
|
|
|
"mako"
|
|
|
|
"mesa"
|
|
|
|
"intel-vaapi-driver"
|
|
|
|
"qemu"
|
|
|
|
"fprintd"
|
|
|
|
"lvm2"
|
2023-01-12 20:22:25 +00:00
|
|
|
"git"
|
2023-01-10 07:27:46 +00:00
|
|
|
"libqalculate"
|
|
|
|
"bc"
|
|
|
|
"icecat"
|
|
|
|
"cryptsetup"
|
|
|
|
"gnupg"
|
|
|
|
"profanity"
|
|
|
|
"go"
|
|
|
|
"adanaxisgpl"
|
|
|
|
"supertuxkart"
|
|
|
|
"minetest"
|
|
|
|
"xonotic"
|
|
|
|
"mpv"
|
|
|
|
"imagemagick"
|
|
|
|
"rsync"
|
|
|
|
"neofetch"
|
|
|
|
"gnunet"
|
|
|
|
"lm-sensors"
|
|
|
|
"acpi"
|
|
|
|
"gnupg"
|
|
|
|
"password-store"
|
|
|
|
"xclip"
|
|
|
|
"font-fira-mono"
|
|
|
|
"font-fira-code"
|
|
|
|
"newsboat"
|
|
|
|
"kodi"
|
|
|
|
"yt-dlp"
|
|
|
|
"icedove"
|
|
|
|
"irssi"
|
|
|
|
"monero-gui"
|
|
|
|
"pamixer"
|
|
|
|
"slurp"
|
|
|
|
"grim"
|
|
|
|
"foot"
|
|
|
|
"wofi"
|
|
|
|
"swayidle"
|
|
|
|
"swayhide"
|
|
|
|
"wl-clipboard"
|
|
|
|
"xorg-server-xwayland"
|
|
|
|
"wob"
|
|
|
|
"light"
|
|
|
|
"htop"
|
|
|
|
"pinentry"
|
|
|
|
"ungoogled-chromium-wayland"
|
|
|
|
"make"
|
|
|
|
"gimp"
|
|
|
|
"cmus"
|
|
|
|
"python"
|
|
|
|
"openssl"
|
|
|
|
"font-google-noto"
|
|
|
|
"font-google-noto-serif-cjk"
|
|
|
|
"font-google-noto-sans-cjk"
|
|
|
|
"font-awesome"
|
|
|
|
"socat"
|
|
|
|
"emacs"
|
|
|
|
"mpv-mpris"
|
|
|
|
"playerctl"
|
|
|
|
"reptyr"
|
|
|
|
"unzip"
|
|
|
|
"ffmpeg"
|
|
|
|
"handbrake"
|
|
|
|
"ripit"
|
|
|
|
"perl"
|
|
|
|
"bind"
|
|
|
|
"netcat"
|
|
|
|
"tmate"
|
|
|
|
"torsocks"
|
|
|
|
"alsa-utils"
|
|
|
|
"proxychains-ng"
|
|
|
|
"whois"))
|
2022-12-02 02:34:44 +00:00
|
|
|
(cons*
|
|
|
|
%base-packages)))
|
2022-11-23 20:18:02 +00:00
|
|
|
(timezone "America/New_York")
|
|
|
|
(locale "en_US.utf8")
|
|
|
|
(name-service-switch %mdns-host-lookup-nss)
|
|
|
|
(services
|
2022-12-06 12:56:03 +00:00
|
|
|
(cons*
|
2023-01-10 07:27:46 +00:00
|
|
|
(service openssh-service-type
|
|
|
|
(openssh-configuration
|
|
|
|
(permit-root-login 'prohibit-password)
|
|
|
|
(password-authentication? #f)))
|
2022-11-23 20:18:02 +00:00
|
|
|
(service network-manager-service-type)
|
|
|
|
(service wpa-supplicant-service-type)
|
|
|
|
(service gpm-service-type)
|
|
|
|
(service ntp-service-type)
|
|
|
|
(service cups-service-type)
|
|
|
|
(service elogind-service-type)
|
2022-11-29 13:45:17 +00:00
|
|
|
(service dbus-root-service-type)
|
2023-01-01 00:30:37 +00:00
|
|
|
(service fprintd-service-type)
|
2022-11-23 20:18:02 +00:00
|
|
|
(screen-locker-service swaylock)
|
2022-12-02 02:34:44 +00:00
|
|
|
(service tor-service-type
|
2022-12-06 12:56:03 +00:00
|
|
|
(tor-configuration
|
|
|
|
(config-file (plain-file "tor-config"
|
|
|
|
"HTTPTunnelPort 127.0.0.1:9250"))))
|
2022-12-31 19:57:10 +00:00
|
|
|
; %base-services))
|
|
|
|
(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"))))))
|
2023-01-10 07:27:46 +00:00
|
|
|
(sudoers-file (plain-file "sudoers" "\
|
|
|
|
root ALL=(ALL) ALL
|
|
|
|
%wheel ALL=(ALL) ALL
|
|
|
|
Cmnd_Alias WITHOUTPW = /home/cobra/.local/bin/__suspend, /home/cobra/.local/bin/beep, /run/current-system/profile/sbin/halt, /run/current-system/profile/sbin/reboot
|
|
|
|
Defaults!WITHOUTPW !authenticate
|
|
|
|
")))
|