This repository has been archived by the owner on Jun 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.nix
146 lines (115 loc) · 2.96 KB
/
configuration.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{ config, pkgs, ... }:
{
system.stateVersion = "17.09";
# Ugh
nixpkgs.config = {
allowUnfree = true;
packageOverrides = super: let self = super.pkgs; in {
polybar = super.polybar.override {
i3Support = true;
mpdSupport = true;
};
};
};
imports =
[
./hardware-configuration.nix
];
boot.initrd.luks.devices = [
{
name = "root";
device = "/dev/sda3";
preLVM = true;
}
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelModules = [ "kvm-intel" ];
networking.hostName = "navi";
time.timeZone = "America/Chicago";
# hardware.pulseaudio = {
# enable = true;
# support32Bit = true;
# package = pkgs.pulseaudioFull;
# };
hardware.opengl.driSupport32Bit = true;
virtualisation = {
docker.enable = true;
libvirtd.enable = true;
virtualbox.host.enable = true;
};
fileSystems."/mnt/music" = {
device = "//192.168.1.5/losershare/Music";
fsType = "cifs";
options = let
# this line prevents hanging on network split
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
in ["${automount_opts},uid=1000,credentials=/etc/nixos/smb-secrets"];
};
environment.systemPackages = with pkgs; [
# WM Essentials
i3 i3lock polybar rofi rofi-pass
# Rofi-pass deps
xdotool
# Desktop
ranger pavucontrol lxappearance compton nitrogen redshift
audacity mumble keepassx2 twmn arc-theme arc-icon-theme
# Loves of my Life
vimHugeX zsh tmux firefox alacritty pass gnupg
# Tools
curl lsof jq tmux wget git which nmap packer terraform
vagrant tree s3cmd wireguard stow unzip virtmanager
neofetch kubernetes pinentry lm_sensors minikube
# Media
scrot zathura mpv feh sxiv owncloud-client beets
mutt ncmpcpp libreoffice mpc_cli
# Programming
man ack ruby python27Full python3 go
# Non-Free Software
steam
];
fonts.fonts = with pkgs; [
source-code-pro
font-awesome-ttf
powerline-fonts
];
services = {
mpd = {
enable = true;
user = "jesse";
group = "users";
dataDir = "/home/jesse/.mpd";
musicDirectory = "/mnt/music";
# extraConfig = ''
# audio_output {
# type "pulse"
# name "pulse audio"
# }
# '';
};
pcscd = {
enable = true;
};
xserver = {
enable = true;
layout = "us";
xkbOptions = "ctrl:nocaps";
displayManager = {
lightdm.enable = true;
};
windowManager = {
i3.enable = true;
default = "i3";
};
videoDrivers = [ "nvidia" ];
};
};
users.extraUsers.jesse = {
isNormalUser = true;
uid = 1000;
useDefaultShell = false;
initialPassword = "sekret";
extraGroups = ["wheel" "audio" "docker" "libvirtd"];
shell = "/run/current-system/sw/bin/zsh";
};
}