mirror of
https://github.com/kmein/niveum
synced 2026-03-21 12:21:08 +01:00
VPN
~ move ghci dotfile + vim: black as python formatter + openvpn + wpa_supplicant_gui + dot2tex + graphviz + hlint ~ nix-shell: use zsh ~ zsh: show whether in nix-shell ~ ghci: hoogle with haddock links ~ ssh: login with hu id (no passphrase) ~ terminal: Source Code Pro
This commit is contained in:
@@ -187,7 +187,7 @@ in {
|
|||||||
".config/mpv/input.conf".text = import ./dot/mpv.nix;
|
".config/mpv/input.conf".text = import ./dot/mpv.nix;
|
||||||
".config/xfce4/terminal/terminalrc".text = import ./dot/terminal.nix;
|
".config/xfce4/terminal/terminalrc".text = import ./dot/terminal.nix;
|
||||||
".config/zathura/zathurarc".text = "set selection-clipboard clipboard";
|
".config/zathura/zathurarc".text = "set selection-clipboard clipboard";
|
||||||
".ghci".text = import ./dot/ghci.nix { inherit pkgs; };
|
".ghc/ghci.conf".text = import ./dot/ghci.nix { inherit pkgs; };
|
||||||
".ssh/config".text = import ./dot/ssh.nix { inherit lib; };
|
".ssh/config".text = import ./dot/ssh.nix { inherit lib; };
|
||||||
".stack/config.yaml".text = import ./dot/stack.nix { user = config.constants.user; };
|
".stack/config.yaml".text = import ./dot/stack.nix { user = config.constants.user; };
|
||||||
".zshrc".text = "# nothing to see here";
|
".zshrc".text = "# nothing to see here";
|
||||||
|
|||||||
@@ -96,10 +96,11 @@ let vim_conf = ''
|
|||||||
autocmd bufnewfile,bufread *.rust :packadd rust-vim deoplete-rust
|
autocmd bufnewfile,bufread *.rust :packadd rust-vim deoplete-rust
|
||||||
autocmd bufnewfile,bufread *.tex :packadd vimtex | set filetype=tex
|
autocmd bufnewfile,bufread *.tex :packadd vimtex | set filetype=tex
|
||||||
autocmd bufnewfile,bufread *.ts :packadd vim-typescript
|
autocmd bufnewfile,bufread *.ts :packadd vim-typescript
|
||||||
autocmd bufnewfile,bufread *.graphql :packadd vim-graphql | set filetype=graphql
|
autocmd bufnewfile,bufread *.graphql :packadd vim-graphql
|
||||||
autocmd bufnewfile,bufread config set filetype=conf
|
autocmd bufnewfile,bufread config set filetype=conf
|
||||||
autocmd filetype haskell :packadd Hoogle
|
autocmd filetype haskell :packadd Hoogle
|
||||||
autocmd filetype haskell set formatprg=hindent
|
autocmd filetype haskell set formatprg=hindent
|
||||||
|
autocmd filetype python set formatprg=black
|
||||||
autocmd filetype javascript *.js :packadd vim-javascript
|
autocmd filetype javascript *.js :packadd vim-javascript
|
||||||
autocmd filetype make setlocal noexpandtab
|
autocmd filetype make setlocal noexpandtab
|
||||||
autocmd filetype markdown,text set formatoptions+=t
|
autocmd filetype markdown,text set formatoptions+=t
|
||||||
|
|||||||
@@ -33,4 +33,19 @@ in {
|
|||||||
"FlixBus" = {};
|
"FlixBus" = {};
|
||||||
"FlixBus Wi-Fi" = {};
|
"FlixBus Wi-Fi" = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.openvpn.servers = {
|
||||||
|
hu-berlin = {
|
||||||
|
config = ''config ${pkgs.fetchurl {
|
||||||
|
url = https://www.cms.hu-berlin.de/de/dl/netze/vpn/openvpn/hu-berlin.ovpn;
|
||||||
|
sha256 = "d61a644b1e8bd313a8c4bdf1024d8445d56d1fb4a85d2574d597fc020c4901dc";
|
||||||
|
}}
|
||||||
|
route-nopull
|
||||||
|
route 141.20.0.0 255.255.0.0'';
|
||||||
|
authUserPass = {
|
||||||
|
username = eduroam.identity;
|
||||||
|
password = eduroam.password;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ with pkgs;
|
|||||||
xorg.xbacklight
|
xorg.xbacklight
|
||||||
xorg.xcursorthemes
|
xorg.xcursorthemes
|
||||||
xorg.xkill
|
xorg.xkill
|
||||||
|
wpa_supplicant_gui
|
||||||
youtubeDL
|
youtubeDL
|
||||||
zathura
|
zathura
|
||||||
];
|
];
|
||||||
@@ -75,11 +76,13 @@ with pkgs;
|
|||||||
cloc
|
cloc
|
||||||
clojure
|
clojure
|
||||||
ctags
|
ctags
|
||||||
|
dot2tex
|
||||||
dropbox-cli
|
dropbox-cli
|
||||||
fsharp
|
fsharp
|
||||||
gcc
|
gcc
|
||||||
ghc
|
ghc
|
||||||
gnuplot
|
gnuplot
|
||||||
|
graphviz
|
||||||
grive2
|
grive2
|
||||||
haskellPackages.ghcid
|
haskellPackages.ghcid
|
||||||
haskellPackages.hakyll
|
haskellPackages.hakyll
|
||||||
@@ -88,6 +91,7 @@ with pkgs;
|
|||||||
haskellPackages.hoogle
|
haskellPackages.hoogle
|
||||||
haskellPackages.pandoc
|
haskellPackages.pandoc
|
||||||
haskellPackages.pandoc-citeproc
|
haskellPackages.pandoc-citeproc
|
||||||
|
hlint
|
||||||
idris
|
idris
|
||||||
inkscape
|
inkscape
|
||||||
jo
|
jo
|
||||||
@@ -101,6 +105,7 @@ with pkgs;
|
|||||||
par
|
par
|
||||||
perl
|
perl
|
||||||
python3
|
python3
|
||||||
|
python36Packages.black
|
||||||
python36Packages.flake8
|
python36Packages.flake8
|
||||||
racket-minimal
|
racket-minimal
|
||||||
ruby
|
ruby
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ in {
|
|||||||
let rlwrap = cmd: "${pkgs.rlwrap}/bin/rlwrap ${cmd}";
|
let rlwrap = cmd: "${pkgs.rlwrap}/bin/rlwrap ${cmd}";
|
||||||
in {
|
in {
|
||||||
o = "xdg-open";
|
o = "xdg-open";
|
||||||
n = "nix-shell";
|
n = "nix-shell --command zsh";
|
||||||
":r" = ''echo "You stupid!"'';
|
":r" = ''echo "You stupid!"'';
|
||||||
clipboard = "${pkgs.xclip}/bin/xclip -se c";
|
clipboard = "${pkgs.xclip}/bin/xclip -se c";
|
||||||
external-ip = "${pkgs.dnsutils}/bin/dig +short myip.opendns.com @resolver1.opendns.com";
|
external-ip = "${pkgs.dnsutils}/bin/dig +short myip.opendns.com @resolver1.opendns.com";
|
||||||
@@ -29,7 +29,7 @@ in {
|
|||||||
setopt PUSHD_MINUS PUSHD_TO_HOME AUTO_PUSHD
|
setopt PUSHD_MINUS PUSHD_TO_HOME AUTO_PUSHD
|
||||||
'';
|
'';
|
||||||
promptInit = ''
|
promptInit = ''
|
||||||
PROMPT="%{$fg_bold[white]%}%~ \$([[ \$? == 0 ]] && echo \"%{$fg_bold[green]%}\" || echo \"%{$fg_bold[red]%}\")%#%{$reset_color%} "
|
PROMPT="%{$fg_bold[white]%}%~ \$([[ \$? == 0 ]] && echo \"%{$fg_bold[green]%}\" || echo \"%{$fg_bold[red]%}\")\$(test $IN_NIX_SHELL && echo λ || echo %#)%{$reset_color%} "
|
||||||
RPROMPT='$(git_prompt_info)'
|
RPROMPT='$(git_prompt_info)'
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[cyan]%}"
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[cyan]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
''
|
''
|
||||||
:set editor vim
|
:set editor vim
|
||||||
:def hoogle \x -> return $ ":!${pkgs.haskellPackages.hoogle}/bin/hoogle --color \"" ++ x ++ "\" "
|
:def hoogle \s -> return $ ":!${pkgs.haskellPackages.hoogle}/bin/hoogle search --color -l --count=15 \"" ++ s ++ "\""
|
||||||
:def doc \x -> return $ ":!${pkgs.haskellPackages.hoogle}/bin/hoogle --info --color \"" ++ x ++ "\""
|
:def doc \s -> return $ ":!${pkgs.haskellPackages.hoogle}/bin/hoogle search --color -l --info \"" ++ s ++ "\""
|
||||||
:def search \x -> return $ ":!${pkgs.haskellPackages.hoogle}/bin/hoogle --color \"" ++ x ++ "\" | head"
|
|
||||||
:def pl \x -> return $ ":!${pkgs.haskellPackages.pointfree}/bin/pointfree -v \"" ++ x ++ "\""
|
:def pl \x -> return $ ":!${pkgs.haskellPackages.pointfree}/bin/pointfree -v \"" ++ x ++ "\""
|
||||||
:def unpl \x -> return $ ":!${pkgs.haskellPackages.pointful}/bin/pointful \"" ++ x ++ "\""
|
:def unpl \x -> return $ ":!${pkgs.haskellPackages.pointful}/bin/pointful \"" ++ x ++ "\""
|
||||||
:set prompt "\o033[1m%s\o033[1;34m λ\o033[0m "
|
:set prompt "\o033[1m%s\o033[1;34m λ\o033[0m "
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ let huServer = name: ''
|
|||||||
Host ${name}
|
Host ${name}
|
||||||
User ${(import ../secrets.nix).eduroam.identity}
|
User ${(import ../secrets.nix).eduroam.identity}
|
||||||
HostName ${name}.informatik.hu-berlin.de
|
HostName ${name}.informatik.hu-berlin.de
|
||||||
|
IdentityFile ~/.ssh/hu
|
||||||
'';
|
'';
|
||||||
in ''
|
in ''
|
||||||
Host github
|
Host github
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
rec {
|
rec {
|
||||||
uiFont = { name = "Roboto"; size = 10; };
|
uiFont = { name = "Roboto"; size = 10; };
|
||||||
terminalFont = {
|
terminalFont = {
|
||||||
regular = { name = "Roboto Mono for Powerline"; };
|
regular = { name = "Source Code Pro for Powerline"; };
|
||||||
bold = { name = "Roboto Mono Bold for Powerline"; };
|
bold = { name = "Source Code Pro Bold for Powerline"; };
|
||||||
italic = { name = "Roboto Mono Italic for Powerline"; };
|
italic = { name = "Source Code Pro Italic for Powerline"; };
|
||||||
boldItalic = { name = "Roboto Mono Bold Italic for Powerline"; };
|
boldItalic = { name = "Source Code Pro Bold Italic for Powerline"; };
|
||||||
size = 10;
|
size = 10;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user