mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00

After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRev57b193d8dd
result/bin/apply-formatting $NIXPKGS_PATH
34 lines
855 B
Nix
34 lines
855 B
Nix
# Edit this configuration file to define what should be installed on
|
||
# your system. Help is available in the configuration.nix(5) man page
|
||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
|
||
{ modulesPath, ... }:
|
||
|
||
{
|
||
imports = [
|
||
# Include the default lxd configuration.
|
||
"${modulesPath}/virtualisation/lxc-container.nix"
|
||
# Include the container-specific autogenerated configuration.
|
||
./lxd.nix
|
||
];
|
||
|
||
networking = {
|
||
dhcpcd.enable = false;
|
||
useDHCP = false;
|
||
useHostResolvConf = false;
|
||
};
|
||
|
||
systemd.network = {
|
||
enable = true;
|
||
networks."50-eth0" = {
|
||
matchConfig.Name = "eth0";
|
||
networkConfig = {
|
||
DHCP = "ipv4";
|
||
IPv6AcceptRA = true;
|
||
};
|
||
linkConfig.RequiredForOnline = "routable";
|
||
};
|
||
};
|
||
|
||
system.stateVersion = "@stateVersion@"; # Did you read the comment?
|
||
}
|