blob: 2ab046725c9986a25d11b7b70056388df81eb41a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
{ config, lib, pkgs, ... }:
let
inherit (pkgs.vuizvui.profpatsch)
getBins
;
bins = (getBins pkgs.neovim [ "nvim" ])
// (getBins pkgs.less [ "less" ])
;
in {
config = {
boot.cleanTmpDir = true;
nix = {
useSandbox = true;
extraOptions = ''
gc-keep-derivations = false
builders-use-substitutes = true
'';
};
nixpkgs.config.allowUnfree = true;
services.journald.extraConfig = lib.mkDefault "SystemMaxUse=500M";
console.keyMap = lib.mkDefault "de-latin1";
time.timeZone = lib.mkDefault "Europe/Berlin";
i18n = {
defaultLocale = "en_US.UTF-8";
};
programs.fish = {
enable = true;
vendor.completions.enable = true;
shellAliases = {
"sd" = "systemctl";
};
shellInit = ''
set -x fish_greeting ""
# an adisbladis original
function bonk
for arg in $argv
set -l store_path (string unescape (nix-instantiate --eval --expr "with (import <nixpkgs> {}); builtins.toString (lib.getBin $arg)"))
nix-store --realise "$store_path"
set PATH "$store_path/bin" $PATH
end
end
'';
};
documentation = {
enable = true;
dev.enable = true;
man.enable = false;
};
vuizvui.user.sternenseemann.documentation.mandoc = {
enable = true;
generateCaches = true;
manPath = [ "share/man" "share/man/de" ];
};
environment.systemPackages = with pkgs; [
curl wget
man-pages
man-pages-posix
gitFull
file htop psmisc tmux
neovim
];
environment.variables = {
EDITOR = bins.nvim;
VISUAL = bins.nvim;
PAGER = "${bins.less} -R";
# git-diff without the extra options passed to less
GIT_PAGER = bins.less;
LESS = "-R";
};
};
}
|