-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.nix
67 lines (47 loc) · 1.33 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
# 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, ... }:
{
### Modules
imports =
[
./hardware-configuration.nix
./modules/misc.nix
./modules/config.nix
];
### Kernel
boot.initrd.kernelModules =
[
];
### Boot loader
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
### Networking
networking.hostName = "nixos";
networking.wireless.enable = true;
### Filesystems to Mount
### Services
services.openssh.enable = true;
services.locate.enable = true;
services.nixosManual.showManual = true;
services.xserver.enable = true;
#services.xserver.displayManager.kdm.enable = true;
#services.xserver.desktopManager.kde4.enable = true;
services.xserver.desktopManager.xfce.enable = true;
### Security
### Users
users = {
extraGroups = [ { name = "chexxor"; } { name = "dev"; } ];
extraUsers = [ {
description = "chexxor";
name = "chexxor";
group = "chexxor";
extraGroups = [ "users" "wheel" ];
home = "/home/chexxor";
createHome = true;
useDefaultShell = true;
} ];
};
}