-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon.nix
81 lines (62 loc) · 1.85 KB
/
common.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
{ config, lib, pkgs, ... }:
{
imports =
[
./backports.nix
./host
./doyha-backups.nix
./containers.nix
./pulseaudio
./services
./xserver.nix
];
boot.kernelParams = lib.optional (config.host.class != "server")
"resume=${(builtins.head config.swapDevices).device}";
networking.hostName = config.host.name; # Define your hostname.
networking.wireless.enable = config.host.class != "server"; # Enables wireless.
# Select internationalisation properties.
# i18n = {
# consoleFont = "lat9w-16";
# consoleKeyMap = "us";
# defaultLocale = "en_US.UTF-8";
# };
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
wget
vim
hdparm
screen
binutils
];
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
programs.mosh.enable = true;
programs.ssh.startAgent = true;
# Enable CUPS to print documents.
# services.printing.enable = true;
programs.bash.enableCompletion = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
users.extraUsers.edanaher = {
isNormalUser = true;
uid = 1000;
extraGroups = [ "audio" "docker" "wheel" "input" ];
};
networking.extraHosts = ''
71.19.155.118 gahlpo
'';
networking.firewall.allowedTCPPortRanges = [
{ from = 5900; to = 5910; } # VNC
{ from = 24800; to = 24800; } # Synergy
];
#nix.nixPath = [ "/home/edanaher" "nixos-config=/etc/nixos/configuration.nix" ];
boot.tmpOnTmpfs = true;
security.wrappers = {
mount.source = "${pkgs.utillinux}/bin/mount";
umount.source = "${pkgs.utillinux}/bin/umount";
};
nix.settings.sandbox = true;
nix.daemonIOSchedPriority = 3;
boot.kernel.sysctl."vm.swappiness" = 1;
}