commit b94923a310d9e1457404edfc0133fd5ec93fa607 Author: Leo Alho Date: Sat Jul 25 16:13:15 2026 +0300 first commit diff --git a/channels.scm b/channels.scm new file mode 100644 index 0000000..0554922 --- /dev/null +++ b/channels.scm @@ -0,0 +1,10 @@ +(cons* (channel + (name 'nonguix) + (url "https://gitlab.com/nonguix/nonguix") + ;; Enable signature verification: + (introduction + (make-channel-introduction + "897c1a470da759236cc11798f4e0a5f7d4d59fbc" + (openpgp-fingerprint + "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5")))) + %default-channels) diff --git a/current b/current new file mode 120000 index 0000000..4f1f147 --- /dev/null +++ b/current @@ -0,0 +1 @@ +/var/guix/profiles/per-user/leo/current-guix \ No newline at end of file diff --git a/files/.tmux.conf b/files/.tmux.conf new file mode 100644 index 0000000..e5ceb80 --- /dev/null +++ b/files/.tmux.conf @@ -0,0 +1,35 @@ +#Add a mapping for reloading the conf file +bind r source-file ~/.tmux.conf \; display-message "RELOADING CONFIGURATION FILE…" + +# remap prefix from 'C-b' to 'C-a' +unbind C-b +set-option -g prefix C-a +bind-key C-a send-prefix + +# Enable mouse control (clickable windows, panes, resizable panes) +set -g mouse on + +set -g status-style bg=white,fg=black +set -g window-active-style bg=black +set -g window-style bg=#212121 + +set -g pane-border-style fg=gray +set -g pane-border-lines heavy +set -g pane-active-border-style fg=yellow +# set -g pane-border-lines double +set -g pane-border-status bottom +set -g pane-border-format '' + +set -g window-status-current-format '[#I:#W]' +set -g window-status-format '#I:#W' +set -g window-status-current-style fg=yellow + +set-option -g status-right "" +set-option -g status-left "" +set -g status-style bg=default + +bind-key H display-popup -E "htop" + +bind '"' split-window -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" +bind c new-window -c "~/Documents" diff --git a/files/alacritty.toml b/files/alacritty.toml new file mode 100644 index 0000000..804fe02 --- /dev/null +++ b/files/alacritty.toml @@ -0,0 +1,49 @@ +[terminal.shell] +program = "/run/current-system/profile/bin/bash" +args = [ "-l", "-c", "tmux attach || tmux" ] + +# [general] +# import = [ +# "~/.config/alacritty/themes/dayfox.toml" +#] + +[window] +# opacity = 0.85 +decorations = "None" + + [window.padding] + x = 10 + y = 10 + +# [colors.primary] +# background = "#000000" + +# [bell] +# command = { program = "paplay", args = ["/usr/share/sounds/freedesktop/stereo/message.oga"] } + +[font] +size = 11 + +# [font.bold] +# family = "SpaceMono Nerd Font Mono" +# style = "Bold" + +# [font.bold_italic] +# family = "SpaceMono Nerd Font Mono" +# style = "Bold Italic" + +# [font.italic] +# family = "SpaceMono Nerd Font Mono" +# style = "Italic" + +# [font.normal] +# family = "SpaceMono Nerd Font Mono" +# style = "Regular" + + +[[hints.enabled]] +regex = "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)[^\u0000-\u001f\u007f-\u009f<>\"\\s{-}\\^⟨⟩`]+" +command = "xdg-open" +post_processing = true +mouse = { enabled = true, mods = "Control" } +binding = { key = "U", mods = "Control|Shift" } diff --git a/files/init.lua b/files/init.lua new file mode 100644 index 0000000..93bd395 --- /dev/null +++ b/files/init.lua @@ -0,0 +1,5 @@ +vim.opt.number = true +vim.opt.swapfile = true +vim.opt.autoindent = true +vim.opt.shiftwidth = 4 +vim.opt.confirm = true diff --git a/files/tmux.conf b/files/tmux.conf new file mode 100644 index 0000000..99c0a78 --- /dev/null +++ b/files/tmux.conf @@ -0,0 +1,46 @@ +#Add a mapping for reloading the conf file +bind r source-file ~/.tmux.conf \; display-message "RELOADING CONFIGURATION FILE…" + +# remap prefix from 'C-b' to 'C-a' +unbind C-b +set-option -g prefix C-a +bind-key C-a send-prefix + +# Enable mouse control (clickable windows, panes, resizable panes) +set -g mouse on + +set -g status-style bg=white,fg=black +set -g window-active-style bg=black +set -g window-style bg=#212121 + +set -g pane-border-style fg=gray +set -g pane-border-lines heavy +set -g pane-active-border-style fg=yellow +# set -g pane-border-lines double +set -g pane-border-status bottom +set -g pane-border-format '' + +set -g window-status-current-format '[#I:#W]' +set -g window-status-format '#I:#W' +set -g window-status-current-style fg=yellow + +# List of plugins +# set -g @plugin 'tmux-plugins/tpm' + +set-option -g status-right "" +set-option -g status-left "" +set -g status-style bg=default + +# set-window-option -g visual-bell on + +bind-key H display-popup -E "htop" +# bind-key N display-popup "~/go/bin/klod" +# bind-key N display-popup -E 'tmux new-session -A -s scratch ~/go/bin/klod \; set status off' + +bind '"' split-window -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" +bind c new-window -c "~/Documents" + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +# run '~/.tmux/plugins/tpm/tpm' + diff --git a/home.scm b/home.scm new file mode 100644 index 0000000..cd55467 --- /dev/null +++ b/home.scm @@ -0,0 +1,43 @@ +(define-module (guix-home-config) + #:use-module (gnu home) + #:use-module (gnu home services) + #:use-module (gnu home services shells) + #:use-module (gnu services) + #:use-module (gnu system shadow) + #:use-module (gnu packages) + #:use-module (guix gexp)) + +(define home-config + (home-environment + (services + (append (list + ;; Uncomment the shell you wish to use for your user: + ;; (service home-bash-service-type) + ;; (service home-fish-service-type) + ;; (service home-zsh-service-type) + (simple-service 'my-dotfiles home-files-service-type + `((".tmux.conf" ,(local-file "files/tmux.conf")))) + (simple-service 'my-xdg-configs + home-xdg-configuration-files-service-type + `(("alacritty/alacritty.toml" ,(local-file + "files/alacritty.toml")) + ("nvim/init.lua" ,(local-file "files/init.lua")))) + (service home-files-service-type + `((".guile" ,%default-dotguile) + (".Xdefaults" ,%default-xdefaults))) + + (service home-xdg-configuration-files-service-type + `(("gdb/gdbinit" ,%default-gdbinit) + ("nano/nanorc" ,%default-nanorc)))) + %base-home-services)) + (packages (specifications->packages '("git" "tmux" + "alacritty" + "htop" + "node" + "go" + "neovim" + "firefox"))) + + )) + +home-config