diff options
author | stuebinm | 2024-02-11 00:17:07 +0100 |
---|---|---|
committer | stuebinm | 2024-02-11 00:21:08 +0100 |
commit | d12184c99b528cddf0676608d290e50932d1656c (patch) | |
tree | 4ea6b098cc96cbd35fba26458e5e65c9aed10054 /surltesh-echer/home | |
parent | 9f6cdc0e3ce29f7680878627402fb61af9ebcbd8 (diff) |
guixify surltesh-echer
initial config, the system is now a mess with lots of old nix stuff
still hanging out on the disk.
Tbh not sure if I'll do much with this, but wanted to play around a
little with this again.
Diffstat (limited to '')
-rw-r--r-- | surltesh-echer/home/bash_profile | 5 | ||||
-rw-r--r-- | surltesh-echer/home/bashrc | 36 | ||||
-rw-r--r-- | surltesh-echer/home/home-configuration.scm | 66 |
3 files changed, 107 insertions, 0 deletions
diff --git a/surltesh-echer/home/bash_profile b/surltesh-echer/home/bash_profile new file mode 100644 index 0000000..1db2b77 --- /dev/null +++ b/surltesh-echer/home/bash_profile @@ -0,0 +1,5 @@ +# include .profile if it exists +[[ -f ~/.profile ]] && . ~/.profile + +# include .bashrc if it exists +[[ -f ~/.bashrc ]] && . ~/.bashrc diff --git a/surltesh-echer/home/bashrc b/surltesh-echer/home/bashrc new file mode 100644 index 0000000..9c2ee2d --- /dev/null +++ b/surltesh-echer/home/bashrc @@ -0,0 +1,36 @@ + + +# Commands that should be applied only for interactive shells. +[[ $- == *i* ]] || return + +HISTCONTROL=ignoredups:ignorespace +HISTFILESIZE=10000 +HISTSIZE=10000 + +shopt -s histappend +shopt -s checkwinsize +shopt -s extglob +shopt -s globstar +shopt -s checkjobs + +alias ll='ls -slF' +alias lrz-vpn='sudo openconnect https://asa-cluster.lrz.de -g AnyConnect' +alias news='newsboat' +alias pj='pijul' + +if [[ ! -v BASH_COMPLETION_VERSINFO ]]; then + . "/nix/store/9xgx98k6ggq1ay63cq57k9gw35i44b1n-bash-completion-2.11/etc/profile.d/bash_completion.sh" +fi + +export GPG_TTY=`tty` +# this shouldn't be necessary, but apparently nix is broken ... +NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH +PS1='\[\033[1;36m\] >>> [\j|\u@\w]\$: \[\033[00m\]' + +GPG_TTY="$(tty)" +export GPG_TTY + +if [[ $TERM != "dumb" && (-z $INSIDE_EMACS || $INSIDE_EMACS == "vterm") ]]; then + eval "$(/home/stuebinm/.nix-profile/bin/starship init bash --print-full-init)" +fi + diff --git a/surltesh-echer/home/home-configuration.scm b/surltesh-echer/home/home-configuration.scm new file mode 100644 index 0000000..f44a68b --- /dev/null +++ b/surltesh-echer/home/home-configuration.scm @@ -0,0 +1,66 @@ +;; This "home-environment" file can be passed to 'guix home reconfigure' +;; to reproduce the content of your profile. This is "symbolic": it only +;; specifies package names. To reproduce the exact same profile, you also +;; need to capture the channels being used, as returned by "guix describe". +;; See the "Replicating Guix" section in the manual. + +(use-modules (gnu) + (gnu home) + (gnu packages) + (gnu services) + (guix gexp) + (gnu home services shells) + (gnu home services ssh) + (gnu home services guix)) + +(use-package-modules + bootloaders certs + emacs + terminals + wm xdisorg shells admin + version-control + haskell-apps + rust-apps + compression + linux + pulseaudio + ssh + nss) + +(home-environment + ;; Below is the list of packages that will show up in your + ;; Home profile, under ~/.guix-home/profile. + (packages (list git + ripgrep + fd eza zip unzip acpi + brightnessctl openssh + pavucontrol)) + + ;; Below is the list of Home services. To search for available + ;; services, run 'guix home search KEYWORD' in a terminal. + (services + (list + (service home-openssh-service-type + (home-openssh-configuration + (hosts + (list (openssh-host + (name "cgit") + (user "git") + (host-name "flora.stuebinm.eu") + (identity-file "/home/stuebinm/.ssh/hetzner")) + (openssh-host + (name "chaski") + (user "root") + (host-name "chaski.stuebinm.eu") + (identity-file "/home/stuebinm/.ssh/hetzner")))))) + (service home-fish-service-type + (home-fish-configuration)) + (service home-bash-service-type + (home-bash-configuration + (aliases '(("ll" . "ls -slF") + ("lrz-vpn" . "sudo openconnect https://asa-cluster.lrz.de -g AnyConnect") + ("news" . "newsboat") + ("pj" . "pijul"))) + (bashrc (list (local-file "bashrc" "bashrc"))) + (bash-profile (list (local-file "bash_profile" + "bash_profile")))))))) |