diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | channels.scm | 18 | ||||
| -rw-r--r-- | home-config/.bash_profile | 8 | ||||
| -rw-r--r-- | home-config/.bashrc | 41 | ||||
| -rw-r--r-- | home-config/home-configuration.scm | 49 | ||||
| -rw-r--r-- | system.scm | 148 |
6 files changed, 265 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5b9023a --- /dev/null +++ b/.gitignore | |||
| @@ -0,0 +1 @@ | |||
| current | |||
diff --git a/channels.scm b/channels.scm new file mode 100644 index 0000000..3b14d78 --- /dev/null +++ b/channels.scm | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | (list (channel | ||
| 2 | (name 'guix) | ||
| 3 | (url "https://git.savannah.gnu.org/git/guix.git") | ||
| 4 | (branch "master") | ||
| 5 | (introduction | ||
| 6 | (make-channel-introduction | ||
| 7 | "9edb3f66fd807b096b48283debdcddccfea34bad" | ||
| 8 | (openpgp-fingerprint | ||
| 9 | "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) | ||
| 10 | (channel | ||
| 11 | (name 'nonguix) | ||
| 12 | (url "https://gitlab.com/nonguix/nonguix") | ||
| 13 | (branch "master") | ||
| 14 | (introduction | ||
| 15 | (make-channel-introduction | ||
| 16 | "897c1a470da759236cc11798f4e0a5f7d4d59fbc" | ||
| 17 | (openpgp-fingerprint | ||
| 18 | "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))) | ||
diff --git a/home-config/.bash_profile b/home-config/.bash_profile new file mode 100644 index 0000000..319a0ca --- /dev/null +++ b/home-config/.bash_profile | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | export MOZ_ENABLE_WAYLAND=1 | ||
| 2 | |||
| 3 | export XDG_CURRENT_DESKTOP=sway | ||
| 4 | export XDG_SESSION_DESKTOP=sway | ||
| 5 | export _JAVA_AWT_WM_NONREPEATING=1 | ||
| 6 | |||
| 7 | # Honor per-interactive-shell startup file | ||
| 8 | if [ -f ~/.bashrc ]; then . ~/.bashrc; fi | ||
diff --git a/home-config/.bashrc b/home-config/.bashrc new file mode 100644 index 0000000..76bfbec --- /dev/null +++ b/home-config/.bashrc | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | # Bash initialization for interactive non-login shells and | ||
| 2 | # for remote shells (info "(bash) Bash Startup Files"). | ||
| 3 | |||
| 4 | # Export 'SHELL' to child processes. Programs such as 'screen' | ||
| 5 | # honor it and otherwise use /bin/sh. | ||
| 6 | export SHELL | ||
| 7 | |||
| 8 | if [[ $- != *i* ]] | ||
| 9 | then | ||
| 10 | # We are being invoked from a non-interactive shell. If this | ||
| 11 | # is an SSH session (as in "ssh host command"), source | ||
| 12 | # /etc/profile so we get PATH and other essential variables. | ||
| 13 | [[ -n "$SSH_CLIENT" ]] && source /etc/profile | ||
| 14 | |||
| 15 | # Don't do anything else. | ||
| 16 | return | ||
| 17 | fi | ||
| 18 | |||
| 19 | # Source the system-wide file. | ||
| 20 | source /etc/bashrc | ||
| 21 | |||
| 22 | # Adjust the prompt depending on whether we're in 'guix environment'. | ||
| 23 | if [ -n "$GUIX_ENVIRONMENT" ] | ||
| 24 | then | ||
| 25 | PS1='\u@\h \w [env]\$ ' | ||
| 26 | else | ||
| 27 | PS1='\u@\h \w\$ ' | ||
| 28 | fi | ||
| 29 | alias ls='ls -p --color=auto' | ||
| 30 | alias ll='ls -l' | ||
| 31 | alias grep='grep --color=auto' | ||
| 32 | |||
| 33 | # Ryan's custom stuff | ||
| 34 | alias quit='exit' | ||
| 35 | export EDITOR=nvim | ||
| 36 | alias cat='bat --paging=never' | ||
| 37 | |||
| 38 | # GPG SETUP FOR SSH | ||
| 39 | export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) | ||
| 40 | gpgconf --launch gpg-agent | ||
| 41 | export GPG_TTY=$(tty) | ||
diff --git a/home-config/home-configuration.scm b/home-config/home-configuration.scm new file mode 100644 index 0000000..3ee4f76 --- /dev/null +++ b/home-config/home-configuration.scm | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | ;; This "home-environment" file can be passed to 'guix home reconfigure' | ||
| 2 | ;; to reproduce the content of your profile. This is "symbolic": it only | ||
| 3 | ;; specifies package names. To reproduce the exact same profile, you also | ||
| 4 | ;; need to capture the channels being used, as returned by "guix describe". | ||
| 5 | ;; See the "Replicating Guix" section in the manual. | ||
| 6 | |||
| 7 | (use-modules (gnu home) | ||
| 8 | (gnu packages) | ||
| 9 | (gnu services) | ||
| 10 | (guix gexp) | ||
| 11 | (gnu home services shells)) | ||
| 12 | |||
| 13 | (home-environment | ||
| 14 | ;; Below is the list of packages that will show up in your | ||
| 15 | ;; Home profile, under ~/.guix-home/profile. | ||
| 16 | (packages (specifications->packages (list "bat" | ||
| 17 | "qrencode" | ||
| 18 | "libreoffice" | ||
| 19 | "flatpak" | ||
| 20 | "gnupg" | ||
| 21 | "lsof" | ||
| 22 | "pavucontrol" | ||
| 23 | "bind:utils" | ||
| 24 | ;"firefox" | ||
| 25 | "irssi" | ||
| 26 | "font-cns11643" | ||
| 27 | "syncthing" | ||
| 28 | "perl" | ||
| 29 | "tor" | ||
| 30 | "unzip" | ||
| 31 | "alacritty" | ||
| 32 | "htop" | ||
| 33 | "curl" | ||
| 34 | "neovim" | ||
| 35 | "git"))) | ||
| 36 | |||
| 37 | ;; Below is the list of Home services. To search for available | ||
| 38 | ;; services, run 'guix home search KEYWORD' in a terminal. | ||
| 39 | (services | ||
| 40 | (list (service home-bash-service-type | ||
| 41 | (home-bash-configuration | ||
| 42 | (aliases '(("grep" . "grep --color=auto") ("ll" . "ls -l") | ||
| 43 | ("ls" . "ls -p --color=auto"))) | ||
| 44 | (bashrc (list (local-file | ||
| 45 | "/home/ryan/.config/guix/home-config/.bashrc" | ||
| 46 | "bashrc"))) | ||
| 47 | (bash-profile (list (local-file | ||
| 48 | "/home/ryan/.config/guix/home-config/.bash_profile" | ||
| 49 | "bash_profile")))))))) | ||
diff --git a/system.scm b/system.scm new file mode 100644 index 0000000..90e99ab --- /dev/null +++ b/system.scm | |||
| @@ -0,0 +1,148 @@ | |||
| 1 | ;; This is an operating system configuration generated | ||
| 2 | ;; by the graphical installer. | ||
| 3 | ;; | ||
| 4 | ;; Once installation is complete, you can learn and modify | ||
| 5 | ;; this file to tweak the system configuration, and pass it | ||
| 6 | ;; to the 'guix system reconfigure' command to effect your | ||
| 7 | ;; changes. | ||
| 8 | |||
| 9 | |||
| 10 | ;; Indicate which modules to import to access the variables | ||
| 11 | ;; used in this configuration. | ||
| 12 | (use-modules (gnu) (nongnu packages linux)) | ||
| 13 | (use-modules (gnu system setuid)) | ||
| 14 | (use-modules (gnu packages admin)) | ||
| 15 | (use-modules (guix packages)) | ||
| 16 | (use-modules (gnu services authentication)) | ||
| 17 | (use-modules (gnu packages shells)) | ||
| 18 | (use-modules (srfi srfi-1)) | ||
| 19 | (use-package-modules security-token) | ||
| 20 | (use-service-modules cups desktop networking ssh xorg sound security-token) | ||
| 21 | |||
| 22 | ; Re-define the base packages to remove sudo | ||
| 23 | (define %my-base-packages | ||
| 24 | (remove (lambda (package) | ||
| 25 | (member (package-name package) | ||
| 26 | (list "sudo" "nano"))) | ||
| 27 | %base-packages )) | ||
| 28 | |||
| 29 | (operating-system | ||
| 30 | (kernel linux) | ||
| 31 | (firmware (list linux-firmware)) | ||
| 32 | (locale "en_US.utf8") | ||
| 33 | (timezone "America/New_York") | ||
| 34 | (keyboard-layout (keyboard-layout "us")) | ||
| 35 | (host-name "RyanThinkpad") | ||
| 36 | |||
| 37 | ;; The list of user accounts ('root' is implicit). | ||
| 38 | (users (cons* (user-account | ||
| 39 | (name "ryan") | ||
| 40 | (comment "Ryan") | ||
| 41 | (group "users") | ||
| 42 | ;(shell (file-append zsh "/bin/zsh")) | ||
| 43 | (home-directory "/home/ryan") | ||
| 44 | (supplementary-groups '("wheel" "netdev" "audio" "video" "lp" "plugdev"))) | ||
| 45 | %base-user-accounts)) | ||
| 46 | |||
| 47 | ;; Packages installed system-wide. Users can also install packages | ||
| 48 | ;; under their own account: use 'guix search KEYWORD' to search | ||
| 49 | ;; for packages and 'guix install PACKAGE' to install a package. | ||
| 50 | (packages (append (map specification->package (list "sway" | ||
| 51 | "swaybg" | ||
| 52 | "swayidle" | ||
| 53 | "swaylock-effects" | ||
| 54 | "fuzzel" | ||
| 55 | "alacritty" | ||
| 56 | "pinentry-qt" | ||
| 57 | "adwaita-icon-theme" | ||
| 58 | "hicolor-icon-theme" | ||
| 59 | "git" | ||
| 60 | "nss-certs" | ||
| 61 | "waybar" | ||
| 62 | "gnupg" | ||
| 63 | "light" | ||
| 64 | "mako" | ||
| 65 | "grim" | ||
| 66 | "slurp" | ||
| 67 | "wl-clipboard" | ||
| 68 | "bluez" | ||
| 69 | "blueman" | ||
| 70 | "opendoas" | ||
| 71 | "xdg-desktop-portal-wlr" | ||
| 72 | "xdg-desktop-portal" | ||
| 73 | "pipewire" | ||
| 74 | "fprintd" | ||
| 75 | "wireplumber" | ||
| 76 | "zsh")) | ||
| 77 | %my-base-packages )) | ||
| 78 | |||
| 79 | ;; Below is the list of system services. To search for available | ||
| 80 | ;; services, run 'guix system search KEYWORD' in a terminal. | ||
| 81 | (services | ||
| 82 | (append (list | ||
| 83 | |||
| 84 | ;; To configure OpenSSH, pass an 'openssh-configuration' | ||
| 85 | ;; record as a second argument to 'service' below. | ||
| 86 | (service openssh-service-type) | ||
| 87 | (service pcscd-service-type) | ||
| 88 | (service fprintd-service-type) | ||
| 89 | (service bluetooth-service-type) | ||
| 90 | (udev-rules-service 'fido2 libfido2 #:groups '("plugdev")) | ||
| 91 | (set-xorg-configuration | ||
| 92 | (xorg-configuration (keyboard-layout keyboard-layout)))) | ||
| 93 | |||
| 94 | ;; This is the default list of services we | ||
| 95 | ;; are appending to. | ||
| 96 | (modify-services %desktop-services | ||
| 97 | (guix-service-type config => | ||
| 98 | (guix-configuration | ||
| 99 | (inherit config) | ||
| 100 | (substitute-urls | ||
| 101 | (append (list "https://substitutes.nonguix.org") | ||
| 102 | %default-substitute-urls)) | ||
| 103 | (authorized-keys | ||
| 104 | (cons* (plain-file "non-guix.pub" | ||
| 105 | "(public-key | ||
| 106 | (ecc | ||
| 107 | (curve Ed25519) | ||
| 108 | (q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#) | ||
| 109 | ) | ||
| 110 | )" ) %default-authorized-guix-keys)))) | ||
| 111 | (delete pulseaudio-service-type) | ||
| 112 | (delete gdm-service-type) ))) | ||
| 113 | (setuid-programs | ||
| 114 | (append (list (file-like->setuid-program | ||
| 115 | (file-append | ||
| 116 | (specification->package "swaylock-effects") | ||
| 117 | "/bin/swaylock")) | ||
| 118 | (file-like->setuid-program | ||
| 119 | (file-append | ||
| 120 | (specification->package "opendoas") | ||
| 121 | "/bin/doas"))) | ||
| 122 | (delete sudo %setuid-programs))) | ||
| 123 | (bootloader (bootloader-configuration | ||
| 124 | (bootloader grub-efi-bootloader) | ||
| 125 | (targets (list "/boot/efi")) | ||
| 126 | (keyboard-layout keyboard-layout))) | ||
| 127 | (mapped-devices (list (mapped-device | ||
| 128 | (source (uuid | ||
| 129 | "adcaf322-7ee5-48ec-abf6-4a9b10643878")) | ||
| 130 | (target "sysroot") | ||
| 131 | (type luks-device-mapping)))) | ||
| 132 | |||
| 133 | ;; The list of file systems that get "mounted". The unique | ||
| 134 | ;; file system identifiers there ("UUIDs") can be obtained | ||
| 135 | ;; by running 'blkid' in a terminal. | ||
| 136 | (file-systems (cons* (file-system | ||
| 137 | (mount-point "/") | ||
| 138 | (device "/dev/mapper/sysroot") | ||
| 139 | (type "ext4") | ||
| 140 | (dependencies mapped-devices)) | ||
| 141 | (file-system | ||
| 142 | (mount-point "/boot/efi") | ||
| 143 | (device (uuid "DFE8-32EF" | ||
| 144 | 'fat32)) | ||
| 145 | (type "vfat")) %base-file-systems)) | ||
| 146 | (swap-devices | ||
| 147 | (list | ||
| 148 | (swap-space (target (uuid "7e1bb7c5-da2a-4509-8263-f707fc752993"))) ))) | ||
