at 23.11-pre 3.3 kB view raw
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}