forked from colemickens/nixos-flake-example
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfiguration.nix
63 lines (51 loc) · 1.18 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
{ config, pkgs, lib, ... }:
{
networking.hostName = "maxos";
# X11 / plasma
services.xserver = {
enable = true;
desktopManager.plasma5.enable = true;
windowManager.i3.enable = true;
displayManager = {
defaultSession = "plasma";
lightdm.enable = true;
#autoLogin.enable = true;
#autoLogin.user = "user";
};
};
# Override defaults
fonts.fontconfig.enable = lib.mkForce true;
services.xserver.resolutions = [
{
x = 1920; y = 1440;
}
];
# For https://github.com/NixOS/nixpkgs/issues/59867
systemd.services.docker.serviceConfig.ExecStart = [
""
"${pkgs.docker}/bin/dockerd -g /home/user/maxos/docker -H fd://"
];
# Password for user
users.users.user.password = "password";
# VM settings
virtualbox = {
baseImageSize = 64 * 1024;
extraDisk = {
label = "home";
mountPoint = "/home/user/maxos";
size = 512 * 1024;
};
memorySize = 8192;
params = {
audio = "none";
audioin = "off";
audioout = "off";
cpus = "4";
nic1 = "bridged";
nictype1 = "virtio";
usbehci = "off";
};
vmFileName = "maxos.ova";
vmName = "maxos";
};
}