1
0
mirror of https://github.com/kmein/niveum synced 2026-03-19 03:21:10 +01:00

nix optimise; restructure packages

This commit is contained in:
Kierán Meinhardt
2019-01-02 02:18:27 +01:00
parent e214fb4316
commit 6e2d8d5b69
3 changed files with 82 additions and 55 deletions

View File

@@ -13,6 +13,9 @@ in {
configs/retiolum.nix configs/retiolum.nix
]; ];
nix.optimise.automatic = true;
nix.gc.automatic = true;
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
sound.enable = true; sound.enable = true;

View File

@@ -1,5 +1,7 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let scripts = import ../dot/scripts.nix { inherit pkgs lib; }; let
scripts = import ../dot/scripts.nix { inherit pkgs lib; };
daybook = pkgs.callPackage ../packages/daybook.nix {};
in with pkgs; in with pkgs;
{ {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@@ -7,56 +9,73 @@ in with pkgs;
fonts.enableDefaultFonts = true; fonts.enableDefaultFonts = true;
fonts.fonts = [ fonts.fonts = [
corefonts corefonts
xlibs.fontschumachermisc
eb-garamond eb-garamond
fira fira
font-awesome-ttf
libertine libertine
lmodern lmodern
powerline-fonts powerline-fonts
roboto roboto
xlibs.fontschumachermisc
]; ];
environment.systemPackages = [ environment.systemPackages = [
] ++ [ # office
abiword abiword
arandr gnumeric
bat ] ++ [ # theme
blueman
chromium
config.constants.theme.gtk.package config.constants.theme.gtk.package
config.constants.theme.icon.package config.constants.theme.icon.package
config.constants.theme.cursor.package config.constants.theme.cursor.package
dos2unix ] ++ [ # internet
ffmpeg aria2
file chromium
firefox firefox
git
gnumake
gnumeric
gthumb
htop
imagemagick
libnotify
lsof
lxappearance
mpv
pamixer
pavucontrol
pmount
ranger
ripgrep
tree
rlwrap
tor-browser-bundle-bin tor-browser-bundle-bin
unzip
w3m w3m
wget wget
whois whois
xclip ] ++ [ # media
ffmpeg
mpv
pamixer
pavucontrol
gthumb
imagemagick
sxiv sxiv
blueman
zathura
] ++ [ # archive
unzip
unrar
p7zip
] ++ [ # monitor
htop
iotop
iftop
lsof
psmisc
] ++ [ # shell
bat
dos2unix
file
git
manpages
posix_man_pages
most
ranger
ripgrep
rlwrap
tree
] ++ [ # hardware
pmount
usbutils
pciutils
] ++ [ # graphical
arandr
libnotify
xclip
xorg.xkill xorg.xkill
wpa_supplicant_gui wpa_supplicant_gui
zathura
]; ];
programs.command-not-found.enable = true; programs.command-not-found.enable = true;
@@ -69,6 +88,7 @@ in with pkgs;
services.dbus.packages = [ pkgs.gnome3.dconf ]; services.dbus.packages = [ pkgs.gnome3.dconf ];
users.users.kfm.packages = scripts ++ [ users.users.kfm.packages = scripts ++ [
] ++ [ # typesetting
(texlive.combine { inherit (pkgs.texlive) (texlive.combine { inherit (pkgs.texlive)
scheme-tetex scheme-tetex
latexmk latexmk
@@ -90,49 +110,53 @@ in with pkgs;
stdclsdv stdclsdv
xstring; xstring;
}) })
(callPackage ../packages/daybook {}) pandoc
audacity haskellPackages.pandoc-citeproc
cabal-install ] ++ [ # programming
cabal2nix
calibre
cloc cloc
gnumake
cabal2nix
clojure clojure
dropbox-cli
fsharp
gcc gcc
ghc ghc
gnuplot
graphviz
grive2
haskellPackages.ghcid haskellPackages.ghcid
haskellPackages.hakyll haskellPackages.hakyll
haskellPackages.hasktags haskellPackages.hasktags
haskellPackages.hindent haskellPackages.hindent
haskellPackages.hoogle haskellPackages.hoogle
pandoc
haskellPackages.pandoc-citeproc
hlint hlint
inkscape
jo jq
lua lua
maxima
memo
mypy mypy
nix-prefetch-git nix-prefetch-git
nodejs nodejs
ocaml ocaml
par
python3 python3
python36Packages.black python36Packages.black
python36Packages.flake8 python36Packages.flake8
racket-minimal racket-minimal
rustup rustup
scala scala
seafile-client
shellcheck shellcheck
stack
] ++ [ # media
audacity
calibre
youtubeDL youtubeDL
spotify spotify
stack inkscape
# zeroad ] ++ [ # cloud
dropbox-cli
grive2
seafile-client
] ++ [ # math
bc
graphviz
maxima
] ++ [ # shell
daybook
jo
jq
memo
par
]; ];
} }

View File

@@ -4,17 +4,17 @@ stdenv.mkDerivation {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kmein"; owner = "kmein";
repo = "daybook"; repo = "daybook";
rev = "370c62bc19d514efc55451fca19d6aa26ba5e893"; rev = "cad1aef158b0df36861434eb04c953d99a122e80";
sha256 = "0dqah4ml561xbizkbah0s7n4mqn7y5dcpwbp3x7cj5ypr7y225gp"; sha256 = "07qippyry0yjf971pnqxm9i0xpvih8mvbhxwfwpwq980jik1hbl1";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ pandoc ]; buildInputs = [ pandoc ];
buildPhase = '' buildPhase = ''
pandoc --standalone --to man daybook.1.md -o daybook.1 mkdir -p $out/share/man/man1
pandoc --standalone --to man daybook.1.md -o $out/share/man/man1/daybook.1
''; '';
installPhase = '' installPhase = ''
mkdir -p $out/{bin,share/man/man1} mkdir -p $out/bin
install daybook.1 $out/share/man/man1
install daybook $out/bin install daybook $out/bin
wrapProgram $out/bin/daybook --prefix PATH ":" ${pandoc}/bin ; wrapProgram $out/bin/daybook --prefix PATH ":" ${pandoc}/bin ;
''; '';