/ hosts / cube / configuration.nix
configuration.nix
 1  { config, pkgs, ... }:
 2  
 3  {
 4    imports =
 5      [
 6        # Include the results of the hardware scan.
 7        ./hardware-configuration.nix
 8      ];
 9  
10    boot.loader.grub.enable = true;
11    boot.loader.grub.device = "/dev/vda"; # or "nodev" for efi only
12  
13    networking.hostName = "cube"; # Define your hostname.
14  
15    networking.useDHCP = false;
16    networking.interfaces.ens3.useDHCP = true;
17    i18n.defaultLocale = "en_US.UTF-8";
18  
19    environment.systemPackages = with pkgs; [
20      vim
21      gitAndTools.gitFull
22    ];
23  
24    # This value determines the NixOS release from which the default
25    # settings for stateful data, like file locations and database versions
26    # on your system were taken. It‘s perfectly fine and recommended to leave
27    # this value at the release version of the first install of this system.
28    # Before changing this value read the documentation for this option
29    # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
30    system.stateVersion = "21.11"; # Did you read the comment?
31  }
32