You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.3 KiB

2 years ago
2 years ago
2 years ago
2 years ago
  1. { config, pkgs, ... }:
  2. {
  3. imports =
  4. [ # Include the results of the hardware scan.
  5. ./hardware-configuration.nix
  6. ./users.nix
  7. ];
  8. # Use the systemd-boot EFI boot loader.
  9. boot.loader.grub = {
  10. enable = true;
  11. version = 2;
  12. device = "/dev/vda";
  13. };
  14. networking.hostName = "nixbox"; # Define your hostname.
  15. # Set your time zone.
  16. time.timeZone = "US/Eastern";
  17. # Select internationalisation properties.
  18. i18n.defaultLocale = "en_US.UTF-8";
  19. console = {
  20. font = "Lat2-Terminus16";
  21. keyMap = "us";
  22. useXkbConfig = true; # use xkbOptions in tty.
  23. };
  24. nix = {
  25. package = pkgs.nixFlakes; # or versioned attributes like nix_2_7
  26. extraOptions = ''
  27. experimental-features = nix-command flakes
  28. '';
  29. };
  30. environment.systemPackages = with pkgs; [
  31. vim nano
  32. wget curl
  33. neofetch
  34. screen tmux fff
  35. bash dash git
  36. docker-compose
  37. nodejs
  38. ];
  39. virtualisation.docker.enable = true;
  40. programs.starship.enable = true;
  41. programs.neovim = {
  42. enable = true;
  43. viAlias = true;
  44. };
  45. # Some programs need SUID wrappers, can be configured further or are
  46. # started in user sessions.
  47. # programs.mtr.enable = true;
  48. programs.gnupg.agent = {
  49. enable = true;
  50. enableSSHSupport = true;
  51. };
  52. # List services that you want to enable:
  53. # Enable the OpenSSH daemon.
  54. services.openssh.enable = true;
  55. # Open ports in the firewall.
  56. # networking.firewall.allowedTCPPorts = [ ... ];
  57. # networking.firewall.allowedUDPPorts = [ ... ];
  58. # Or disable the firewall altogether.
  59. networking.firewall.enable = false;
  60. # Copy the NixOS configuration file and link it from the resulting system
  61. # (/run/current-system/configuration.nix). This is useful in case you
  62. # accidentally delete configuration.nix.
  63. system.copySystemConfiguration = true;
  64. # This value determines the NixOS release from which the default
  65. # settings for stateful data, like file locations and database versions
  66. # on your system were taken. It‘s perfectly fine and recommended to leave
  67. # this value at the release version of the first install of this system.
  68. # Before changing this value read the documentation for this option
  69. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  70. system.stateVersion = "22.05"; # Did you read the comment?
  71. }