/ configuration.nix
configuration.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, on 3 # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). 4 5 { config, lib, pkgs, ... }: 6 7 { 8 imports = 9 [ 10 # Include the results of the hardware scan. 11 ./hardware-configuration.nix 12 ]; 13 14 boot.loader.systemd-boot.enable = true; 15 boot.loader.efi.canTouchEfiVariables = true; 16 17 # networking.hostName = "nixos"; # Define your hostname. 18 # Pick only one of the below networking options. 19 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. 20 # networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. 21 22 # Set your time zone. 23 # time.timeZone = "Europe/Amsterdam"; 24 25 # Configure network proxy if necessary 26 # networking.proxy.default = "http://user:password@proxy:port/"; 27 # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; 28 29 # Select internationalisation properties. 30 # i18n.defaultLocale = "en_US.UTF-8"; 31 # console = { 32 # font = "Lat2-Terminus16"; 33 # keyMap = "us"; 34 # useXkbConfig = true; # use xkb.options in tty. 35 # }; 36 37 # Enable the X11 windowing system. 38 # services.xserver.enable = true; 39 40 41 42 43 # Configure keymap in X11 44 # services.xserver.xkb.layout = "us"; 45 # services.xserver.xkb.options = "eurosign:e,caps:escape"; 46 47 # Enable CUPS to print documents. 48 # services.printing.enable = true; 49 50 # Enable sound. 51 # sound.enable = true; 52 # hardware.pulseaudio.enable = true; 53 54 # Enable touchpad support (enabled default in most desktopManager). 55 # services.xserver.libinput.enable = true; 56 57 # Define a user account. Don't forget to set a password with ‘passwd’. 58 # users.users.alice = { 59 # isNormalUser = true; 60 # extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. 61 # packages = with pkgs; [ 62 # firefox 63 # tree 64 # ]; 65 # }; 66 67 # List packages installed in system profile. To search, run: 68 # $ nix search wget 69 # environment.systemPackages = with pkgs; [ 70 # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. 71 # wget 72 # ]; 73 74 # Some programs need SUID wrappers, can be configured further or are 75 # started in user sessions. 76 # programs.mtr.enable = true; 77 # programs.gnupg.agent = { 78 # enable = true; 79 # enableSSHSupport = true; 80 # }; 81 82 # List services that you want to enable: 83 84 # Enable the OpenSSH daemon. 85 # services.openssh.enable = true; 86 87 # Open ports in the firewall. 88 # networking.firewall.allowedTCPPorts = [ ... ]; 89 # networking.firewall.allowedUDPPorts = [ ... ]; 90 # Or disable the firewall altogether. 91 # networking.firewall.enable = false; 92 93 # Copy the NixOS configuration file and link it from the resulting system 94 # (/run/current-system/configuration.nix). This is useful in case you 95 # accidentally delete configuration.nix. 96 # system.copySystemConfiguration = true; 97 98 # This option defines the first version of NixOS you have installed on this particular machine, 99 # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. 100 # 101 # Most users should NEVER change this value after the initial install, for any reason, 102 # even if you've upgraded your system to a new NixOS release. 103 # 104 # This value does NOT affect the Nixpkgs version your packages and OS are pulled from, 105 # so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how 106 # to actually do that. 107 # 108 # This value being lower than the current NixOS release does NOT mean your system is 109 # out of date, out of support, or vulnerable. 110 # 111 # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration, 112 # and migrated your data accordingly. 113 # 114 # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . 115 system.stateVersion = "24.05"; # Did you read the comment? 116 117 } 118