1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 03:51:07 +01:00

Learn from jwiegley

This commit is contained in:
Kierán Meinhardt
2019-01-17 09:42:12 +01:00
4 changed files with 40 additions and 41 deletions

View File

@@ -5,6 +5,7 @@ let
iolanguage = pkgs.callPackage ../packages/iolanguage.nix {}; iolanguage = pkgs.callPackage ../packages/iolanguage.nix {};
todoist = pkgs.callPackage ../packages/todoist {}; todoist = pkgs.callPackage ../packages/todoist {};
unstable = import <nixos-unstable> {}; unstable = import <nixos-unstable> {};
executables = pkgs.haskell.lib.justStaticExecutables;
in with pkgs; in with pkgs;
{ {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@@ -66,9 +67,14 @@ in with pkgs;
] ++ [ # shell ] ++ [ # shell
bat bat
dos2unix dos2unix
fd
file file
git git
gitAndTools.hub
gitstats
manpages manpages
patch
patchutils
posix_man_pages posix_man_pages
most most
ranger ranger
@@ -98,57 +104,40 @@ in with pkgs;
users.users.kfm.packages = scripts ++ [ users.users.kfm.packages = scripts ++ [
] ++ [ # typesetting ] ++ [ # typesetting
(texlive.combine { inherit (pkgs.texlive) (texlive.combine {
scheme-tetex inherit (pkgs.texlive) scheme-full texdoc latex2e-help-texinfo;
latexmk pkgFilter = pkg: pkg.tlType == "run" || pkg.tlType == "bin" || pkg.pname == "latex2e-help-texinfo";
biblatex
comment
csquotes
enumitem
fontaxes
ifnextok
tcolorbox
lipsum
environ
trimspaces
ucharclasses
wrapfig
imakeidx
hardwrap
titlesec
libertine
logreq
marginnote
mweights
realscripts
pbox
stdclsdv
fdsymbol
moderncv
xstring;
}) })
pandoc pandoc
haskellPackages.pandoc-citeproc (executables haskellPackages.pandoc-citeproc)
asciidoctor asciidoctor
] ++ [ # programming ] ++ [ # programming
cloc cloc
gnumake gnumake
cabal2nix cabal2nix
chicken
clojure clojure
gcc gcc
ghc ghc
guile (executables haskellPackages.cabal-install)
haskellPackages.ghcid (executables haskellPackages.ghcid)
haskellPackages.hakyll (executables haskellPackages.hakyll)
haskellPackages.hasktags (executables haskellPackages.hasktags)
haskellPackages.hindent (executables haskellPackages.hindent)
haskellPackages.hoogle (executables haskellPackages.hoogle)
hlint (executables haskellPackages.pointfree)
(executables haskellPackages.pointful)
(executables haskellPackages.hlint)
(executables haskellPackages.hpack)
htmlTidy
iolanguage iolanguage
lua lua
mypy mypy
nix-prefetch-git nix-prefetch-git
nodejs nodejs
nodePackages.eslint
nodePackages.csslint
nodePackages.prettier
ocaml ocaml
python3 python3
python36Packages.black python36Packages.black
@@ -157,7 +146,6 @@ in with pkgs;
rustup rustup
scala scala
shellcheck shellcheck
stack
] ++ [ # media ] ++ [ # media
audacity audacity
calibre calibre
@@ -174,12 +162,19 @@ in with pkgs;
graphviz graphviz
maxima maxima
] ++ [ # shell ] ++ [ # shell
daybook
# todoist # todoist
unstable.hledger aspell
aspellDicts.de
aspellDicts.en
aspellDicts.la
daybook
jo jo
jq jq
memo memo
par par
qrencode
unstable.hledger
wordnet
xsv
]; ];
} }

View File

@@ -10,6 +10,7 @@
ip = "${pkgs.iproute}/bin/ip -c"; ip = "${pkgs.iproute}/bin/ip -c";
ocaml = rlwrap "${pkgs.ocaml}/bin/ocaml"; ocaml = rlwrap "${pkgs.ocaml}/bin/ocaml";
tmux = "${pkgs.tmux}/bin/tmux -2"; tmux = "${pkgs.tmux}/bin/tmux -2";
inix = "nix repl '<nixpkgs>'";
}; };
environment.interactiveShellInit = "export PATH=$PATH:$HOME/.local/bin:$HOME/.cargo/bin"; environment.interactiveShellInit = "export PATH=$PATH:$HOME/.local/bin:$HOME/.cargo/bin";

View File

@@ -388,6 +388,9 @@ let
scripts.wttr = unstable.writers.writeDashBin "wttr" '' scripts.wttr = unstable.writers.writeDashBin "wttr" ''
${pkgs.curl}/bin/curl -s -H "Accept-Language: ''${LANG%_*}" --compressed "wttr.in/''${1-$(${pkgs.curl}/bin/curl -s ipinfo.io | ${pkgs.jq}/bin/jq .loc)}?0" ${pkgs.curl}/bin/curl -s -H "Accept-Language: ''${LANG%_*}" --compressed "wttr.in/''${1-$(${pkgs.curl}/bin/curl -s ipinfo.io | ${pkgs.jq}/bin/jq .loc)}?0"
''; '';
scripts.nix-git = unstable.writers.writeDashBin "nix-git" ''
${pkgs.nix-prefetch-git}/bin/nix-prefetch-git "$@" 2> /dev/null | ${pkgs.jq}/bin/jq -r '"rev = \"\(.rev)\";\nsha256 = \"\(.sha256)\";"'
'';
scripts.q = scripts.q =
let let
q-performance = '' q-performance = ''

View File

@@ -33,8 +33,8 @@ in {
}; };
theme = mapAttrs (const themeOption) { theme = mapAttrs (const themeOption) {
gtk = { name = "Breeze-Dark"; package = pkgs.breeze-gtk; }; gtk = { name = "Arc"; package = pkgs.arc-theme; };
icon = { name = "Adwaita"; package = pkgs.gnome3.adwaita-icon-theme; }; icon = { name = "Arc"; package = pkgs.arc-icon-theme; };
cursor = { name = "capitaine-cursors"; package = pkgs.capitaine-cursors; }; cursor = { name = "capitaine-cursors"; package = pkgs.capitaine-cursors; };
}; };
}; };