| author | Tomas Zeman <tomas@functionals.cz> |
| Fri, 10 Jul 2020 16:35:43 +0200 | |
| changeset 14 | 30c184da8c38 |
| parent 13 | 21b163f36071 |
| child 15 | 070c8c2a6a62 |
| permissions | -rw-r--r-- |
| 0 | 1 |
{ config, pkgs, ... }:
|
2 |
||
3 |
let |
|
4 |
||
5 |
my-nur = import /repos/NixOS/nur-packages {
|
|
6 |
inherit pkgs; |
|
7 |
}; |
|
8 |
||
9 |
in |
|
10 |
||
11 |
{
|
|
| 1 | 12 |
imports = [ |
13 |
./idea.nix |
|
| 5 | 14 |
./mailcap.nix |
| 8 | 15 |
./sbt.nix |
| 9 | 16 |
./scripts.nix |
| 7 | 17 |
./ssh.nix |
18 |
./priv |
|
| 1 | 19 |
]; |
| 0 | 20 |
|
21 |
home.packages = [ |
|
22 |
my-nur.guilt |
|
| 3 | 23 |
my-nur.hgeditor |
| 12 | 24 |
pkgs.fossil |
| 0 | 25 |
pkgs.nix-direnv |
| 13 | 26 |
pkgs.quilt |
|
11
59c22f11b270
packages for taking screenshots
Tomas Zeman <tomas@functionals.cz>
parents:
9
diff
changeset
|
27 |
pkgs.xorg.xwd # X dump/screenshot |
|
59c22f11b270
packages for taking screenshots
Tomas Zeman <tomas@functionals.cz>
parents:
9
diff
changeset
|
28 |
pkgs.netpbm # pnmtops |
|
59c22f11b270
packages for taking screenshots
Tomas Zeman <tomas@functionals.cz>
parents:
9
diff
changeset
|
29 |
pkgs.ghostscript |
| 0 | 30 |
]; |
31 |
||
|
14
30c184da8c38
nixpkgs-config.nix: share config.nix for nix-* and home-manager
Tomas Zeman <tomas@functionals.cz>
parents:
13
diff
changeset
|
32 |
nixpkgs.config = import ./nixpkgs-config.nix; |
|
30c184da8c38
nixpkgs-config.nix: share config.nix for nix-* and home-manager
Tomas Zeman <tomas@functionals.cz>
parents:
13
diff
changeset
|
33 |
|
| 0 | 34 |
programs.bash = {
|
35 |
enable = true; |
|
| 2 | 36 |
enableAutojump = true; |
| 0 | 37 |
initExtra = '' |
38 |
export LC_CTYPE=cs_CZ.UTF-8 |
|
39 |
unset LC_ALL |
|
40 |
eval `dircolors $HOME/.dir_colors` |
|
41 |
eval `keychain --eval --agents ssh,gpg` |
|
42 |
PS1='[\u@\h \W \D{%F %T}]\n\$ '
|
|
43 |
''; |
|
44 |
sessionVariables = {
|
|
| 3 | 45 |
HGEDITOR="hgeditor"; |
| 0 | 46 |
}; |
47 |
}; |
|
48 |
||
49 |
# Let Home Manager install and manage itself. |
|
50 |
programs.home-manager.enable = true; |
|
51 |
||
52 |
programs.direnv = {
|
|
53 |
enable = true; |
|
54 |
enableBashIntegration = true; |
|
55 |
stdlib = '' |
|
56 |
if [ -f ~/.nix-profile/share/nix-direnv/direnvrc ]; then |
|
57 |
source ~/.nix-profile/share/nix-direnv/direnvrc |
|
58 |
fi |
|
59 |
''; |
|
60 |
}; |
|
61 |
||
62 |
services.gpg-agent = {
|
|
63 |
enable = true; |
|
64 |
pinentryFlavor = "gtk2"; |
|
65 |
verbose = true; |
|
66 |
}; |
|
67 |
||
|
14
30c184da8c38
nixpkgs-config.nix: share config.nix for nix-* and home-manager
Tomas Zeman <tomas@functionals.cz>
parents:
13
diff
changeset
|
68 |
xdg.configFile."nixpkgs/config.nix".source = ./nixpkgs-config.nix; |
|
30c184da8c38
nixpkgs-config.nix: share config.nix for nix-* and home-manager
Tomas Zeman <tomas@functionals.cz>
parents:
13
diff
changeset
|
69 |
|
| 0 | 70 |
# This value determines the Home Manager release that your |
71 |
# configuration is compatible with. This helps avoid breakage |
|
72 |
# when a new Home Manager release introduces backwards |
|
73 |
# incompatible changes. |
|
74 |
# |
|
75 |
# You can update Home Manager without changing this value. See |
|
76 |
# the Home Manager release notes for a list of state version |
|
77 |
# changes in each release. |
|
78 |
home.stateVersion = "20.03"; |
|
79 |
} |
|
80 |
||
81 |
# vim: ts=2 sw=2 et |