-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_configuration_template.nix
46 lines (39 loc) · 1.38 KB
/
_configuration_template.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
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports = [
./profiles/default.nix
# TODO Put additional profiles here
./hardware-configuration.nix
];
# Encrypted disk with LUKS
boot.initrd.luks.devices = [
{
name = "root";
device = "/dev/disk/by-uuid/<UUID-HERE>"; # TODO
preLVM = true;
}
];
networking = {
hostName = "<HOSTNAME>"; # TODO
# Set firewall rules here, for example:
# firewall = {
# allowedTCPPorts = [ 22 80 ];
# allowedTCPPortRanges = [ { from = 8999; to = 9003; } ];
# allowedUDPPorts = [ 53 ];
# allowedUDPPortRanges = [ { from = 60000; to = 61000; } ];
# }
# Don't forget that some services have options to automatically open ports
# so they may not have to be defined here.
};
time.timeZone = "America/Chicago"; # TODO
# Boot with bluetooth disabled
# hardware.bluetooth.powerOnBoot = false; # TODO
# 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 = "18.09"; # Did you read the comment?
}