Move packages to guix home

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-06-02 01:49:11 -04:00
parent 7d0143036a
commit 39b9d2f63d
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
3 changed files with 27 additions and 126 deletions

View File

@ -15,6 +15,8 @@ export HISTSIZE=1000
export GPG_TTY=$(tty)
export MANPATH=/run/current-system/profile/share/man:/home/cobra/.guix-profile/share/man:/run/current-system/profile/share/man:/home/cobra/.guix-home/profile/share/man
clear() {
printf '\033c' # faster than ncurses clear by a lot
}
@ -33,6 +35,7 @@ alias curl='curl -L'
alias prof='profanity'
alias gomuks="http_proxy='socks5://127.0.0.1:9050' gomuks"
alias tut="http_proxy='socks5://127.0.0.1:9050' tut"
alias dico="dico -d en-wiktionary"
# Random string (passwords)
randstr() {
@ -245,6 +248,10 @@ reconf() {
$PRIV su - -c "guix system reconfigure /etc/guix-config/${HOSTNAME,,}.scm"
}
hreconf() {
guix home reconfigure $HOME/.config/guix/home.scm
}
geng() {
< "$1" sed 's/\s*;.*//' | grep -ve '^$' -e '^T' | awk '{print "N"NR" "$0}' > "$2"
}

View File

@ -172,13 +172,18 @@ bindsym KP_7 exec mpv ~/Audio/mega.opus
# clipped
exec ~/.local/bin/make-combined
bindsym $mod+r exec ~/.local/bin/wf-shadow -r 1
bindsym $mod+g exec ~/.local/bin/wf-shadow -r 2
bindsym $mod+r exec ~/.local/bin/wf-shadow -r LVDS-1
bindsym $mod+g exec ~/.local/bin/wf-shadow -r DP-1
bindsym XF86ScreenSaver exec ~/.local/bin/lock
bindsym Print exec ~/.local/bin/screenshot -w
bindsym Pause exec ~/.local/bin/logout-wofi
# Mumble
bindsym $mod+z exec mumble rpc starttalking
bindsym --release $mod+z exec mumble rpc stoptalking
# Rules
for_window [app_id="float"] floating enable;

View File

@ -51,6 +51,16 @@
(plain-file "v4l2loopback.conf"
"options v4l2loopback video_nr=6,7,8,9 card_label=loopback0,loopback1,loopback2,loopback3 exclusive_caps=1"))
;; System
(define sudoers
(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
"))
(operating-system
(kernel linux-libre)
(kernel-loadable-modules (list v4l2loopback-linux-module))
@ -103,84 +113,12 @@
%base-user-accounts))
(packages (append
(map specification->package+output
(list ;; Audio
"alsa-utils"
"cmus"
"mumble"
"pipewire"
"playerctl"
"pulseaudio"
"pulsemixer"
"wireplumber"
;; Bluetooth
(list ;; Bluetooth
"bluez"
"blueman"
;; Browsers
"icecat"
"icedove"
"lynx"
"ungoogled-chromium-wayland"
;; CAD
"cura"
"freecad"
"gpx"
"kicad"
"kicad-doc"
"kicad-footprints"
"kicad-packages3d"
"kicad-symbols"
"kicad-templates"
;; Chat
"irssi"
"pinentry"
"profanity"
;; Desktop
"brightnessctl"
"foot"
"grim"
"librsvg"
"libnotify"
;; DVD
"libdvdcss"
"libdvdread"
"light"
"mako"
"slurp"
"sway"
"swayhide"
"swayidle"
"swaylock"
"waybar"
"wf-recorder"
"wl-clipboard"
"wlr-randr"
"wob"
"wofi"
"xorg-server-xwayland"
;; Development
"at-spi2-core"
"avr-toolchain"
"gcc-toolchain"
"git"
"git:send-email"
"go"
"make"
"microscheme"
"perl"
"python"
;; DICT
"dico"
"vera"
;; Encryption
"gnupg"
"password-store"
;; Fonts
"font-awesome"
@ -192,14 +130,6 @@
"font-google-noto-serif-cjk"
"font-liberation"
;; Games
"adanaxisgpl"
"supertuxkart"
"minetest"
"xonotic"
"teeworlds"
"red-eclipse"
;; Graphics
"intel-vaapi-driver"
"mesa"
@ -208,31 +138,10 @@
;; Kernel
"v4l2loopback-linux-module"
;; Multimedia
"ffmpeg"
"gimp"
"handbrake"
"imagemagick"
"kodi"
"mpv"
"mpv-mpris"
"reptyr"
"ripit"
;; Network
"bind:utils"
"i2pd"
"net-tools"
"netcat"
"nss-certs"
"proxychains-ng"
"socat"
"tmate"
"torsocks"
"tor"
"whois"
"wireguard-tools"
;; System
"acpi"
@ -245,22 +154,7 @@
"openssl"
;; Utilities
"bc"
"dialog"
"htop"
"hyfetch"
"libqalculate"
"lm-sensors"
"monero-gui"
"newsboat"
"pamixer"
"rsync"
"scdoc"
"screen"
"unzip"
"vim"
"wget"
"yt-dlp"
;; Virtualization
"libvirt"
@ -326,9 +220,4 @@
config => (guix-configuration
(inherit config)
(http-proxy "http://localhost:9250"))))))
(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
")))
(sudoers-file sudoers))