blob: 97030a399046fa9f18921703b67937e9a32899db (
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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
{ config, pkgs, ... }:
{
imports =
[
# ./hardware-configuration.nix
../../modules/packages/vim.nix
];
boot = {
kernelPackages = pkgs.linuxPackages_latest;
loader = {
grub = {
enable = true;
version = 2;
device = "/dev/sda"; # nodev for EFI only
# EFI
efiSupport = false;
efiInstallAsRemovable = false;
};
};
#readOnlyNixStore = false;
};
networking = {
hostName = "RoryNix";
networkmanager.enable = true;
wireless.enable = false;
firewall = {
enable = false;
# allowedTCPPorts = [ ... ];
# allowedUDPPorts = [ ... ];
};
};
time.timeZone = "Europe/Brussels";
i18n.defaultLocale = "en_US.UTF-8";
services = {
xserver = {
enable = true;
videoDrivers = [ "intel" ];
desktopManager.gnome.enable = true;
libinput.enable = true;
layout = "us";
modules = [ pkgs.xorg.xf86videointel ];
};
gnome = {
core-developer-tools.enable = false;
core-utilities.enable = false;
tracker-miners.enable = false;
tracker.enable = false;
};
printing.enable = false;
openssh = {
enable = true;
extraConfig = ''
MaxAuthTries 32
'';
#X11Forwarding = true;
};
};
security.sudo.wheelNeedsPassword = false;
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
sound.enable = true;
hardware.pulseaudio.enable = true;
users.users = {
Rory = {
isNormalUser = true;
extraGroups = [ "wheel" ];
packages = with pkgs; [
#gimp-with-plugins
#xterm
gnomeExtensions.vitals
gnomeExtensions.runcat
];
initialPassword = "password";
};
};
environment.systemPackages = with pkgs; [
wget
neofetch
lnav
pciutils
zsh
gnome-console
feh
git
#lsd
#steam
#nerdfonts
#element-web
sshfs
cinnamon.nemo
firefox-bin
#chromiumDev
htop
udisks
gparted
kitty.terminfo
glxinfo
#epiphany
# Various extensions...
# - Gnome
#gnomeExtensions.vitals
#gnomeExtensions.runcat
# - Dont work on gnome 43:
#gnomeExtensions.undecorate
#gnomeExtensions.inactivity
#gnomeExtensions.left-clock
# - Vim
vimPlugins.vim-nix
];
fonts.fonts = with pkgs; [
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
];
# nixpkgs.overlays = [
# (self: super: {
# python3 = super.python3.override {
# packageOverrides = python-self: python-super: {
# markdown-it-py = python-super.markdown-it-py.overrideAttrs (oldAttrs: {
# doInstallCheck = false;
# });
# };
# };
# haskellPackages = super.haskellPackages.override {
# overrides = haskellPackages-self: haskellPackages-super: {
# basement = haskellPackages-super.basement.overrideAttrs (oldAttrs: {
# patches = [
# ./patches/haskell/basement/IntWord64.patch
# ];
# });
# };
# };
# }
# )
# ];
security.polkit.enable = true;
nix = {
distributedBuilds = true;
buildMachines = [
#"self" = {
#
#};
{
systems = [ "x86_64-linux" "i686-linux" ];
hostName = "192.168.0.3";
sshUser = "Rory";
sshKey = "/home/Rory/.ssh/id_ed25519";
maxJobs = 6;
#cores = 2;
speedFactor = 43200;
}
];
#buildersUseSubstitutes = true;
#ssh://Rory@192.168.0.3 x86_64-linux,i686-linux /home/Rory/.ssh/id_ed25519 12 1 - - -
#registry.nixpkgs.flake = pkgs;
nixPath = [ "nixpkgs=flake:nixpkgs" ];
};
system.stateVersion = "22.11"; # DO NOT EDIT!
}
|