forked from shazow/nixfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hive-hydralisk-desktop.nix
102 lines (87 loc) · 2.55 KB
/
hive-hydralisk-desktop.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
{ config, pkgs, lib, ... }:
{
services.localtime.enable = true;
time.timeZone = "America/Toronto";
services.ntp.enable = true;
programs.dconf.enable = true;
boot.kernelPackages = pkgs.linuxPackages;
hardware.enableAllFirmware = true;
hardware.bluetooth = {
enable = true;
config = { General = { Enable = "Source,Sink,Media,Socket"; }; };
};
hardware.bluetooth.powerOnBoot = true;
services.blueman.enable = true;
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
libvdpau-va-gl
vaapiVdpau
intel-ocl
intel-media-driver
];
imports = [
./hardware/desktop-hive.nix
./common/base-system.nix
./common/desktop-i3.nix
./common/yubikey.nix
./common/hivemind.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
environment.systemPackages = with pkgs; [ qemu ];
# zsh stuff
programs.zsh.enable = true;
programs.zsh.enableCompletion = true;
programs.zsh.promptInit = ""; # Clear this to avoid a conflict with oh-my-zsh
programs.autojump.enable = true;
networking.hostName = "hydralisk";
networking.networkmanager.wifi.macAddress =
"preserve"; # Or "random", "stable", "permanent", "00:11:22:33:44:55"
networking.networkmanager.wifi.powersave = false;
networking.networkmanager.appendNameservers = [ "192.168.199.133" ];
#127.0.0.1 es-dev.precisionnutrition.com
networking.extraHosts = "";
users.users.ghedamat = {
isNormalUser = true;
home = "/home/ghedamat";
description = "ghedamat";
extraGroups = [
"wheel"
"sudoers"
"audio"
"video"
"disk"
"networkmanager"
"plugdev"
"adbusers"
"docker"
];
uid = 1000;
shell = pkgs.zsh;
};
## NEW
services.openssh.enable = true;
services.redshift.enable = true;
services.redshift.provider = "geoclue2";
services.logind.extraConfig = ''
RuntimeDirectorySize=7.8G
'';
services.printing.enable = true;
services.avahi.enable = true;
services.avahi.nssmdns = true;
services.qemuGuest.enable = true;
# hivemind modules
hivemind.dev = {
enable = true;
docker = true;
};
hivemind.server.enable = true;
hivemind.zsa.enable = true;
hivemind.nas-mount.enable = true;
hivemind.tailscale.enable = true;
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "19.09"; # Did you read the comment?
}