-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgui-vm.nix
91 lines (79 loc) · 1.97 KB
/
gui-vm.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
82
83
84
85
86
87
88
89
90
91
{
pkgs,
home-manager-module,
omakix-module,
}: {modulesPath, ...}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
(modulesPath + "/virtualisation/qemu-vm.nix")
home-manager-module
{home-manager.useGlobalPkgs = true;}
];
config = {
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = ["nix-command" "flakes"];
virtualisation = {
memorySize = 8192;
qemu.options = [
"-enable-kvm"
"-vga virtio"
];
};
boot = {
consoleLogLevel = 0;
kernelParams = ["quiet"];
initrd.verbose = false;
plymouth = {
enable = true;
theme = "breeze";
};
};
networking.hostName = "omakix-demo";
i18n.inputMethod.enabled = "ibus";
services.xserver = {
enable = true;
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
autoRepeatDelay = 200;
autoRepeatInterval = 25;
};
services.displayManager.autoLogin = {
enable = true;
user = "demo";
};
services.udev.packages = with pkgs; [gnome.gnome-settings-daemon];
environment.gnome.excludePackages =
(with pkgs; [
gnome-tour
])
++ (with pkgs.gnome; [
epiphany # web browser
]);
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
security.sudo.wheelNeedsPassword = false;
users.users.demo = {
createHome = true;
isNormalUser = true;
extraGroups = ["networkmanager" "wheel" "docker"];
initialPassword = "demo";
};
home-manager.users.demo = {
home.stateVersion = "24.05";
imports = [omakix-module];
omakix = {
enable = true;
theme = "tokyo-night";
font = "fira-mono";
browser = "chromium";
};
};
system.stateVersion = "24.05";
};
}