mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 19:45:25 +03:00
console: nix & ssl certs on foreign distro
This commit is contained in:
parent
b1a5811c8f
commit
dcfe763093
2 changed files with 23 additions and 1 deletions
10
.profile
Normal file → Executable file
10
.profile
Normal file → Executable file
|
|
@ -33,6 +33,14 @@ if [ -d "$HOME/.local/bin" ] ; then
|
||||||
fi
|
fi
|
||||||
# My paths:1 ends here
|
# My paths:1 ends here
|
||||||
|
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# [[file:Console.org::*SSL Certs][SSL Certs:1]]
|
||||||
|
export SSL_CERT_DIR="$HOME/.guix-extra-profiles/system/system/etc/ssl/certs/"
|
||||||
|
export SSL_CERT_FILE="$HOME/.guix-extra-profiles/system/system/etc/ssl/certs/ca-certificates.crt"
|
||||||
|
export GIT_SSL_CAINFO="$SSL_CERT_FILE"
|
||||||
|
export CURL_CA_BUNDLE="$SSL_CERT_FILE"
|
||||||
|
# SSL Certs:1 ends here
|
||||||
|
|
||||||
# [[file:Console.org::*Guix settings][Guix settings:1]]
|
# [[file:Console.org::*Guix settings][Guix settings:1]]
|
||||||
if [ -z "$IS_ANDROID" ]; then
|
if [ -z "$IS_ANDROID" ]; then
|
||||||
GUIX_EXTRA_PROFILES=$HOME/.guix-extra-profiles
|
GUIX_EXTRA_PROFILES=$HOME/.guix-extra-profiles
|
||||||
|
|
@ -83,6 +91,8 @@ fi
|
||||||
if [ -f /run/current-system/profile/etc/profile.d/nix.sh ]; then
|
if [ -f /run/current-system/profile/etc/profile.d/nix.sh ]; then
|
||||||
. /run/current-system/profile/etc/profile.d/nix.sh
|
. /run/current-system/profile/etc/profile.d/nix.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -e /home/pavel/.nix-profile/etc/profile.d/nix.sh ]; then . /home/pavel/.nix-profile/etc/profile.d/nix.sh; fi
|
||||||
# Other package managers:3 ends here
|
# Other package managers:3 ends here
|
||||||
|
|
||||||
# [[file:Console.org::*Other package managers][Other package managers:4]]
|
# [[file:Console.org::*Other package managers][Other package managers:4]]
|
||||||
|
|
|
||||||
14
Console.org
14
Console.org
|
|
@ -83,7 +83,15 @@ if [ -d "$HOME/.local/bin" ] ; then
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
#+end_src
|
#+end_src
|
||||||
|
** SSL Certs
|
||||||
|
This seems necessary when running Guix on a foreign distro.
|
||||||
|
|
||||||
|
#+begin_src bash
|
||||||
|
export SSL_CERT_DIR="$HOME/.guix-extra-profiles/system/system/etc/ssl/certs/"
|
||||||
|
export SSL_CERT_FILE="$HOME/.guix-extra-profiles/system/system/etc/ssl/certs/ca-certificates.crt"
|
||||||
|
export GIT_SSL_CAINFO="$SSL_CERT_FILE"
|
||||||
|
export CURL_CA_BUNDLE="$SSL_CERT_FILE"
|
||||||
|
#+end_src
|
||||||
** Guix settings
|
** Guix settings
|
||||||
Enable extra profiles
|
Enable extra profiles
|
||||||
|
|
||||||
|
|
@ -146,8 +154,12 @@ Enable Nix
|
||||||
if [ -f /run/current-system/profile/etc/profile.d/nix.sh ]; then
|
if [ -f /run/current-system/profile/etc/profile.d/nix.sh ]; then
|
||||||
. /run/current-system/profile/etc/profile.d/nix.sh
|
. /run/current-system/profile/etc/profile.d/nix.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -e /home/pavel/.nix-profile/etc/profile.d/nix.sh ]; then . /home/pavel/.nix-profile/etc/profile.d/nix.sh; fi
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
#+RESULTS:
|
||||||
|
|
||||||
Use Guix fontconfig. Necessary for nix apps
|
Use Guix fontconfig. Necessary for nix apps
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
if [ -d "$HOME/.guix-extra-profiles/desktop-misc" ]; then
|
if [ -d "$HOME/.guix-extra-profiles/desktop-misc" ]; then
|
||||||
|
|
@ -1037,7 +1049,7 @@ fi
|
||||||
|
|
||||||
=mcron= job:
|
=mcron= job:
|
||||||
#+begin_src scheme :tangle ~/.config/cron/autocommit.guile
|
#+begin_src scheme :tangle ~/.config/cron/autocommit.guile
|
||||||
(job "0 * * * *" "autocommit ~/Documents/org-mode")
|
(job "0 * * * *" "autocommit /home/pavel/30-39\\ Life/32\\ org-mode/")
|
||||||
(job "0,15,30,45 * * * *" "autocommit ~/.password-store")
|
(job "0,15,30,45 * * * *" "autocommit ~/.password-store")
|
||||||
#+end_src
|
#+end_src
|
||||||
* Guix settings
|
* Guix settings
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue