-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.nix
85 lines (74 loc) · 1.82 KB
/
index.nix
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
{ config, lib, pkgs, attrsets, ... }:
let location = import ./location.nix;
in
{
imports = [
# Files to source for fish config
../../program/shell/fish/sources.nix
../../program/networking/ssh/index.nix
# Services
../../services/media/mpd/default.nix
../../services/dev/lorri/default.nix
# Scripts
./script/index.nix
];
nixpkgs.config.allowUnfree = true;
nixpkgs.config.pulseaudio = true;
home.packages = with pkgs; [
ncmpcpp
zathura
dunst
compton
];
services = {
polybar = {
enable = true;
config = ../../de/bars/polybar/boron-config;
script = "polybar top &";
};
redshift = {
enable = true;
latitude = location.latitude;
longitude = location.longitude;
temperature = {
day = 5700;
night = 3000;
};
};
};
# Environment
home.sessionVariables = {
EDITOR = "nvim";
BROWSER = "firefox";
TERMINAL = "alacritty";
};
programs.fish = import ../../program/shell/fish/default.nix;
programs.alacritty = {
enable = true;
settings = lib.attrsets.recursiveUpdate (import ../../program/terminal/alacritty/default-settings.nix) {
font.size = 11;
font.user_thin_strokes = false;
window = {
decorations = "full";
};
};
};
programs.gpg = {
enable = true;
settings = {
default-key = "F3F42E1F26FE5C63A19D3061FA5C94EDD085C989";
};
};
services.gpg-agent = {
enable = true;
extraConfig = ''
pinentry-program /run/current-system/sw/bin/pinentry-gtk-2
'';
};
xdg.configFile = {
"bspwm".source = ../../de/de/bspwm;
"sxhkd".source = ../../de/de/sxhkd;
"dunst/dunstrc".source = ../../de/notifications/dunst/dunstrc;
"compton/compton.conf".source = ../../de/compositors/compton/boron-compton.conf;
};
}