···100100 Notes</link> for details.
101101 </para>
102102 </listitem>
103103+ <listitem>
104104+ <para>
105105+ LXD support was greatly improved:
106106+ </para>
107107+ <itemizedlist spacing="compact">
108108+ <listitem>
109109+ <para>
110110+ building LXD images from configurations is now directly
111111+ possible with just nixpkgs
112112+ </para>
113113+ </listitem>
114114+ <listitem>
115115+ <para>
116116+ hydra is now building nixOS LXD images that can be used
117117+ standalone with full nixos-rebuild support
118118+ </para>
119119+ </listitem>
120120+ </itemizedlist>
121121+ </listitem>
103122 </itemizedlist>
104123 </section>
105124 <section xml:id="sec-release-21.11-new-services">
+4
nixos/doc/manual/release-notes/rl-2111.section.md
···35353636- GNOME has been upgraded to 41. Please take a look at their [Release Notes](https://help.gnome.org/misc/release-notes/41.0/) for details.
37373838+- LXD support was greatly improved:
3939+ - building LXD images from configurations is now directly possible with just nixpkgs
4040+ - hydra is now building nixOS LXD images that can be used standalone with full nixos-rebuild support
4141+3842## New Services {#sec-release-21.11-new-services}
39434044- [btrbk](https://digint.ch/btrbk/index.html), a backup tool for btrfs subvolumes, taking advantage of btrfs specific capabilities to create atomic snapshots and transfer them incrementally to your backup locations. Available as [services.btrbk](options.html#opt-services.brtbk.instances).
+102
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+with lib;
88+99+{
1010+ imports =
1111+ [ # Include the default lxd configuration.
1212+ ../../../modules/virtualisation/lxc-container.nix
1313+ # Include the container-specific autogenerated configuration.
1414+ ./lxd.nix
1515+ ];
1616+1717+ # networking.hostName = mkForce "nixos"; # Overwrite the hostname.
1818+ # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
1919+2020+ # Set your time zone.
2121+ # time.timeZone = "Europe/Amsterdam";
2222+2323+ # The global useDHCP flag is deprecated, therefore explicitly set to false here.
2424+ # Per-interface useDHCP will be mandatory in the future, so this generated config
2525+ # replicates the default behaviour.
2626+ networking.useDHCP = false;
2727+ networking.interfaces.eth0.useDHCP = true;
2828+2929+ # Configure network proxy if necessary
3030+ # networking.proxy.default = "http://user:password@proxy:port/";
3131+ # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
3232+3333+ # Select internationalisation properties.
3434+ # i18n.defaultLocale = "en_US.UTF-8";
3535+ # console = {
3636+ # font = "Lat2-Terminus16";
3737+ # keyMap = "us";
3838+ # };
3939+4040+ # Enable the X11 windowing system.
4141+ # services.xserver.enable = true;
4242+4343+ # Configure keymap in X11
4444+ # services.xserver.layout = "us";
4545+ # services.xserver.xkbOptions = "eurosign:e";
4646+4747+ # Enable CUPS to print documents.
4848+ # services.printing.enable = true;
4949+5050+ # Enable sound.
5151+ # sound.enable = true;
5252+ # hardware.pulseaudio.enable = true;
5353+5454+ # Enable touchpad support (enabled default in most desktopManager).
5555+ # services.xserver.libinput.enable = true;
5656+5757+ # Define a user account. Don't forget to set a password with ‘passwd’.
5858+ # users.users.jane = {
5959+ # isNormalUser = true;
6060+ # extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
6161+ # };
6262+6363+ # List packages installed in system profile. To search, run:
6464+ # $ nix search wget
6565+ # environment.systemPackages = with pkgs; [
6666+ # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
6767+ # wget
6868+ # firefox
6969+ # ];
7070+7171+ # Some programs need SUID wrappers, can be configured further or are
7272+ # started in user sessions.
7373+ # programs.mtr.enable = true;
7474+ # programs.gnupg.agent = {
7575+ # enable = true;
7676+ # enableSSHSupport = true;
7777+ # };
7878+7979+ # List services that you want to enable:
8080+8181+ # Enable the OpenSSH daemon.
8282+ # services.openssh.enable = true;
8383+8484+ # Open ports in the firewall.
8585+ # networking.firewall.allowedTCPPorts = [ ... ];
8686+ # networking.firewall.allowedUDPPorts = [ ... ];
8787+ # Or disable the firewall altogether.
8888+ # networking.firewall.enable = false;
8989+9090+ # This value determines the NixOS release from which the default
9191+ # settings for stateful data, like file locations and database versions
9292+ # on your system were taken. It‘s perfectly fine and recommended to leave
9393+ # this value at the release version of the first install of this system.
9494+ # Before changing this value read the documentation for this option
9595+ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
9696+ system.stateVersion = "21.05"; # Did you read the comment?
9797+9898+ # As this is intended as a stadalone image, undo some of the minimal profile stuff
9999+ documentation.enable = true;
100100+ documentation.nixos.enable = true;
101101+ environment.noXlibs = false;
102102+}
+34
nixos/maintainers/scripts/lxd/lxd-image.nix
···11+{ lib, config, pkgs, ... }:
22+33+with lib;
44+55+{
66+ imports = [
77+ ../../../modules/virtualisation/lxc-container.nix
88+ ];
99+1010+ virtualisation.lxc.templates.nix = {
1111+ enable = true;
1212+ target = "/etc/nixos/lxd.nix";
1313+ template = ./nix.tpl;
1414+ when = [ "create" "copy" ];
1515+ };
1616+1717+ # copy the config for nixos-rebuild
1818+ system.activationScripts.config = ''
1919+ if [ ! -e /etc/nixos/configuration.nix ]; then
2020+ mkdir -p /etc/nixos
2121+ cat ${./lxd-image-inner.nix} > /etc/nixos/configuration.nix
2222+ sed 's|../../../modules/virtualisation/lxc-container.nix|<nixpkgs/nixos/modules/virtualisation/lxc-container.nix>|g' -i /etc/nixos/configuration.nix
2323+ fi
2424+ '';
2525+2626+ # Network
2727+ networking.useDHCP = false;
2828+ networking.interfaces.eth0.useDHCP = true;
2929+3030+ # As this is intended as a stadalone image, undo some of the minimal profile stuff
3131+ documentation.enable = true;
3232+ documentation.nixos.enable = true;
3333+ environment.noXlibs = false;
3434+}
+9
nixos/maintainers/scripts/lxd/nix.tpl
···11+{ lib, config, pkgs, ... }:
22+33+with lib;
44+55+# WARNING: THIS CONFIGURATION IS AUTOGENERATED AND WILL BE OVERWRITTEN AUTOMATICALLY
66+77+{
88+ networking.hostName = "{{ container.name }}";
99+}
+2-2
nixos/modules/services/finance/odoo.nix
···2222 type = with types; listOf package;
2323 default = [];
2424 example = literalExpression "[ pkgs.odoo_enterprise ]";
2525- description = "Odoo addons";
2525+ description = "Odoo addons.";
2626 };
27272828 settings = mkOption {
2929 type = format.type;
3030 default = {};
3131 description = ''
3232- Odoo configuration settings. For more details see https://www.odoo.com/documentation/15.0/administration/install/deploy.html
3232+ Odoo configuration settings. For more details see <link xlink:href="https://www.odoo.com/documentation/15.0/administration/install/deploy.html"/>
3333 '';
3434 };
3535