···67- Support for WiFi6 (IEEE 802.11ax) and WPA3-SAE-PK was enabled in the `hostapd` package, along with a significant rework of the hostapd module.
8009## New Services {#sec-release-23.11-new-services}
1011- [MCHPRS](https://github.com/MCHPR/MCHPRS), a multithreaded Minecraft server built for redstone. Available as [services.mchprs](#opt-services.mchprs.enable).
···67- Support for WiFi6 (IEEE 802.11ax) and WPA3-SAE-PK was enabled in the `hostapd` package, along with a significant rework of the hostapd module.
89+- LXD now supports virtual machine instances to complement the existing container support
10+11## New Services {#sec-release-23.11-new-services}
1213- [MCHPRS](https://github.com/MCHPR/MCHPRS), a multithreaded Minecraft server built for redstone. Available as [services.mchprs](#opt-services.mchprs.enable).
···1+# Edit this configuration file to define what should be installed on
2+# your system. Help is available in the configuration.nix(5) man page
3+# and in the NixOS manual (accessible by running ‘nixos-help’).
4+5+{ config, pkgs, lib, ... }:
6+7+{
8+ imports =
9+ [
10+ # Include the default lxd configuration.
11+ ../../../modules/virtualisation/lxc-container.nix
12+ # Include the container-specific autogenerated configuration.
13+ ./lxd.nix
14+ ];
15+16+ networking.useDHCP = false;
17+ networking.interfaces.eth0.useDHCP = true;
18+19+ system.stateVersion = "21.05"; # Did you read the comment?
20+}
-95
nixos/maintainers/scripts/lxd/lxd-image-inner.nix
···1-# Edit this configuration file to define what should be installed on
2-# your system. Help is available in the configuration.nix(5) man page
3-# and in the NixOS manual (accessible by running ‘nixos-help’).
4-5-{ config, pkgs, lib, ... }:
6-7-{
8- imports =
9- [ # Include the default lxd configuration.
10- ../../../modules/virtualisation/lxc-container.nix
11- # Include the container-specific autogenerated configuration.
12- ./lxd.nix
13- ];
14-15- # networking.hostName = mkForce "nixos"; # Overwrite the hostname.
16- # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
17-18- # Set your time zone.
19- # time.timeZone = "Europe/Amsterdam";
20-21- # The global useDHCP flag is deprecated, therefore explicitly set to false here.
22- # Per-interface useDHCP will be mandatory in the future, so this generated config
23- # replicates the default behaviour.
24- networking.useDHCP = false;
25- networking.interfaces.eth0.useDHCP = true;
26-27- # Configure network proxy if necessary
28- # networking.proxy.default = "http://user:password@proxy:port/";
29- # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
30-31- # Select internationalisation properties.
32- # i18n.defaultLocale = "en_US.UTF-8";
33- # console = {
34- # font = "Lat2-Terminus16";
35- # keyMap = "us";
36- # };
37-38- # Enable the X11 windowing system.
39- # services.xserver.enable = true;
40-41- # Configure keymap in X11
42- # services.xserver.layout = "us";
43- # services.xserver.xkbOptions = "eurosign:e";
44-45- # Enable CUPS to print documents.
46- # services.printing.enable = true;
47-48- # Enable sound.
49- # sound.enable = true;
50- # hardware.pulseaudio.enable = true;
51-52- # Enable touchpad support (enabled default in most desktopManager).
53- # services.xserver.libinput.enable = true;
54-55- # Define a user account. Don't forget to set a password with ‘passwd’.
56- # users.users.alice = {
57- # isNormalUser = true;
58- # extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
59- # };
60-61- # List packages installed in system profile. To search, run:
62- # $ nix search wget
63- # environment.systemPackages = with pkgs; [
64- # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
65- # wget
66- # firefox
67- # ];
68-69- # Some programs need SUID wrappers, can be configured further or are
70- # started in user sessions.
71- # programs.mtr.enable = true;
72- # programs.gnupg.agent = {
73- # enable = true;
74- # enableSSHSupport = true;
75- # };
76-77- # List services that you want to enable:
78-79- # Enable the OpenSSH daemon.
80- # services.openssh.enable = true;
81-82- # Open ports in the firewall.
83- # networking.firewall.allowedTCPPorts = [ ... ];
84- # networking.firewall.allowedUDPPorts = [ ... ];
85- # Or disable the firewall altogether.
86- # networking.firewall.enable = false;
87-88- # This value determines the NixOS release from which the default
89- # settings for stateful data, like file locations and database versions
90- # on your system were taken. It’s perfectly fine and recommended to leave
91- # this value at the release version of the first install of this system.
92- # Before changing this value read the documentation for this option
93- # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
94- system.stateVersion = "21.05"; # Did you read the comment?
95-}
···1+# Edit this configuration file to define what should be installed on
2+# your system. Help is available in the configuration.nix(5) man page
3+# and in the NixOS manual (accessible by running ‘nixos-help’).
4+5+{ config, pkgs, lib, ... }:
6+7+{
8+ imports =
9+ [
10+ # Include the default lxd configuration.
11+ ../../../modules/virtualisation/lxd-virtual-machine.nix
12+ # Include the container-specific autogenerated configuration.
13+ ./lxd.nix
14+ ];
15+16+ networking.useDHCP = false;
17+ networking.interfaces.eth0.useDHCP = true;
18+19+ system.stateVersion = "23.05"; # Did you read the comment?
20+}
···1+{lib, ...}:
2+3+{
4+ imports = [
5+ ./lxc-image-metadata.nix
6+7+ ../installer/cd-dvd/channel.nix
8+ ../profiles/clone-config.nix
9+ ../profiles/minimal.nix
10+ ];
11+12+ # Allow the user to login as root without password.
13+ users.users.root.initialHashedPassword = lib.mkOverride 150 "";
14+15+ # Some more help text.
16+ services.getty.helpLine = ''
17+18+ Log in as "root" with an empty password.
19+ '';
20+21+ # Containers should be light-weight, so start sshd on demand.
22+ services.openssh.enable = lib.mkDefault true;
23+ services.openssh.startWhenNeeded = lib.mkDefault true;
24+25+ # As this is intended as a standalone image, undo some of the minimal profile stuff
26+ environment.noXlibs = false;
27+ documentation.enable = true;
28+ documentation.nixos.enable = true;
29+ services.logrotate.enable = true;
30+}