···6677- 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.
8899+- LXD now supports virtual machine instances to complement the existing container support
1010+911## New Services {#sec-release-23.11-new-services}
10121113- [MCHPRS](https://github.com/MCHPR/MCHPRS), a multithreaded Minecraft server built for redstone. Available as [services.mchprs](#opt-services.mchprs.enable).
···11+# Edit this configuration file to define what should be installed on
22+# your system. Help is available in the configuration.nix(5) man page
33+# and in the NixOS manual (accessible by running ‘nixos-help’).
44+55+{ config, pkgs, lib, ... }:
66+77+{
88+ imports =
99+ [
1010+ # Include the default lxd configuration.
1111+ ../../../modules/virtualisation/lxc-container.nix
1212+ # Include the container-specific autogenerated configuration.
1313+ ./lxd.nix
1414+ ];
1515+1616+ networking.useDHCP = false;
1717+ networking.interfaces.eth0.useDHCP = true;
1818+1919+ system.stateVersion = "21.05"; # Did you read the comment?
2020+}
-95
nixos/maintainers/scripts/lxd/lxd-image-inner.nix
···11-# Edit this configuration file to define what should be installed on
22-# your system. Help is available in the configuration.nix(5) man page
33-# and in the NixOS manual (accessible by running ‘nixos-help’).
44-55-{ config, pkgs, lib, ... }:
66-77-{
88- imports =
99- [ # Include the default lxd configuration.
1010- ../../../modules/virtualisation/lxc-container.nix
1111- # Include the container-specific autogenerated configuration.
1212- ./lxd.nix
1313- ];
1414-1515- # networking.hostName = mkForce "nixos"; # Overwrite the hostname.
1616- # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
1717-1818- # Set your time zone.
1919- # time.timeZone = "Europe/Amsterdam";
2020-2121- # The global useDHCP flag is deprecated, therefore explicitly set to false here.
2222- # Per-interface useDHCP will be mandatory in the future, so this generated config
2323- # replicates the default behaviour.
2424- networking.useDHCP = false;
2525- networking.interfaces.eth0.useDHCP = true;
2626-2727- # Configure network proxy if necessary
2828- # networking.proxy.default = "http://user:password@proxy:port/";
2929- # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
3030-3131- # Select internationalisation properties.
3232- # i18n.defaultLocale = "en_US.UTF-8";
3333- # console = {
3434- # font = "Lat2-Terminus16";
3535- # keyMap = "us";
3636- # };
3737-3838- # Enable the X11 windowing system.
3939- # services.xserver.enable = true;
4040-4141- # Configure keymap in X11
4242- # services.xserver.layout = "us";
4343- # services.xserver.xkbOptions = "eurosign:e";
4444-4545- # Enable CUPS to print documents.
4646- # services.printing.enable = true;
4747-4848- # Enable sound.
4949- # sound.enable = true;
5050- # hardware.pulseaudio.enable = true;
5151-5252- # Enable touchpad support (enabled default in most desktopManager).
5353- # services.xserver.libinput.enable = true;
5454-5555- # Define a user account. Don't forget to set a password with ‘passwd’.
5656- # users.users.alice = {
5757- # isNormalUser = true;
5858- # extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
5959- # };
6060-6161- # List packages installed in system profile. To search, run:
6262- # $ nix search wget
6363- # environment.systemPackages = with pkgs; [
6464- # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
6565- # wget
6666- # firefox
6767- # ];
6868-6969- # Some programs need SUID wrappers, can be configured further or are
7070- # started in user sessions.
7171- # programs.mtr.enable = true;
7272- # programs.gnupg.agent = {
7373- # enable = true;
7474- # enableSSHSupport = true;
7575- # };
7676-7777- # List services that you want to enable:
7878-7979- # Enable the OpenSSH daemon.
8080- # services.openssh.enable = true;
8181-8282- # Open ports in the firewall.
8383- # networking.firewall.allowedTCPPorts = [ ... ];
8484- # networking.firewall.allowedUDPPorts = [ ... ];
8585- # Or disable the firewall altogether.
8686- # networking.firewall.enable = false;
8787-8888- # This value determines the NixOS release from which the default
8989- # settings for stateful data, like file locations and database versions
9090- # on your system were taken. It’s perfectly fine and recommended to leave
9191- # this value at the release version of the first install of this system.
9292- # Before changing this value read the documentation for this option
9393- # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
9494- system.stateVersion = "21.05"; # Did you read the comment?
9595-}
···11+# Edit this configuration file to define what should be installed on
22+# your system. Help is available in the configuration.nix(5) man page
33+# and in the NixOS manual (accessible by running ‘nixos-help’).
44+55+{ config, pkgs, lib, ... }:
66+77+{
88+ imports =
99+ [
1010+ # Include the default lxd configuration.
1111+ ../../../modules/virtualisation/lxd-virtual-machine.nix
1212+ # Include the container-specific autogenerated configuration.
1313+ ./lxd.nix
1414+ ];
1515+1616+ networking.useDHCP = false;
1717+ networking.interfaces.eth0.useDHCP = true;
1818+1919+ system.stateVersion = "23.05"; # Did you read the comment?
2020+}
···11+{lib, ...}:
22+33+{
44+ imports = [
55+ ./lxc-image-metadata.nix
66+77+ ../installer/cd-dvd/channel.nix
88+ ../profiles/clone-config.nix
99+ ../profiles/minimal.nix
1010+ ];
1111+1212+ # Allow the user to login as root without password.
1313+ users.users.root.initialHashedPassword = lib.mkOverride 150 "";
1414+1515+ # Some more help text.
1616+ services.getty.helpLine = ''
1717+1818+ Log in as "root" with an empty password.
1919+ '';
2020+2121+ # Containers should be light-weight, so start sshd on demand.
2222+ services.openssh.enable = lib.mkDefault true;
2323+ services.openssh.startWhenNeeded = lib.mkDefault true;
2424+2525+ # As this is intended as a standalone image, undo some of the minimal profile stuff
2626+ environment.noXlibs = false;
2727+ documentation.enable = true;
2828+ documentation.nixos.enable = true;
2929+ services.logrotate.enable = true;
3030+}