-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration_VirtualBox.nix
193 lines (165 loc) · 4.43 KB
/
configuration_VirtualBox.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
{ config, pkgs, lib, ... }:
{
imports = [ <nixpkgs/nixos/modules/installer/virtualbox-demo.nix> ];
# Let demo build as a trusted user.
nix.settings.trusted-users = [ "demo" ];
virtualisation.virtualbox.guest.enable = true;
virtualisation.virtualbox.guest.draganddrop = true;
services.xserver.desktopManager.plasma5.enable = lib.mkForce false;
# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
i18n.defaultLocale = "de_CH.UTF-8";
# Enable the X11 windowing system.
# You can disable this if you're only using the Wayland session.
services.xserver = {
enable = true;
xkb = {
layout = "ch";
};
};
# Configure console keymap
console.keyMap = "sg";
# https://nixos.wiki/wiki/KDE
# copy/paste from host needs spice-vdagend which does not work on wayland yet
services.displayManager.sddm = {
enable = true;
wayland.enable = false;
};
services.desktopManager.plasma6.enable = true;
# Enable automatic login for the user.
services.displayManager = {
autoLogin.enable = true;
autoLogin.user = "demo";
defaultSession = "plasmax11";
};
# settings saved for some applications (gtk3 applications, firefox)
programs.dconf.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
services.libinput.enable = true;
# Install firefox.
programs.firefox.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Mount a VirtualBox shared folder.
# This is configurable in the VirtualBox menu at
# Machine / Settings / Shared Folders.
# fileSystems."/mnt" = {
# fsType = "vboxsf";
# device = "nameofdevicetomount";
# options = [ "rw" ];
# };
# By default, the NixOS VirtualBox demo image includes SDDM and Plasma.
# If you prefer another desktop manager or display manager, you may want
# to disable the default.
# services.xserver.desktopManager.plasma5.enable = lib.mkForce false;
# services.displayManager.sddm.enable = lib.mkForce false;
# Enable GDM/GNOME by uncommenting above two lines and two lines below.
# services.xserver.displayManager.gdm.enable = true;
# services.xserver.desktopManager.gnome.enable = true;
# Set your time zone.
time.timeZone = "Europe/Zurich";
# List packages installed in system profile. To search, run:
# \$ nix search wget
environment.systemPackages = with pkgs; [
wget
vim
git
git-lfs
ripgrep
htop
file
gnumake
hyperfine
tokei
fortune
cowsay
jq
lolcat
p7zip
mkpasswd
gnupg
pinentry-all
ventoy
keepassxc
firefox
chromium
thunderbird
libreoffice
thonny
jupyter
rstudio
geogebra6
arduino
greenfoot
racket
sublime-merge
vscode
vscode-extensions.mhutchie.git-graph
octave
kate
pandoc
nano
bat
fzf
tree
navi
fzf
direnv
thefuck
ffmpeg
cmatrix
libsecret
R
nodejs
rakudo
zef
zeromq
obsidian
texliveFull
gcc
libgcc
jdk
openssl
python3Full
];
#zef install Jupyter::Chatbook --serial
#jupyter-chatbook.raku --generate-config
#nix profile install .#filius --extra-experimental-features "nix-command flakes"
#nix profile install .#tigerjython --extra-experimental-features "nix-command flakes" --impure
users.defaultUserShell = pkgs.zsh;
programs = {
zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
ohMyZsh = {
enable = true;
theme = "robbyrussell";
plugins = [
"thefuck"
"git"
"history"
"sudo"
"copyfile"
"copypath"
"dirhistory"
"jsontools"
"web-search"
"direnv"
];
};
};
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Optimising the NixOS store with automatic options. This will optimise the
# store on every build which may slow down builds. The alternativ is to set
# them on specific dates like this:
# nix.optimise.automatic = true;
# nix.optimise.dates = [ "03:45" ]; # Optional; allows customizing schedule
nix.settings.auto-optimise-store = true;
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
}