NixOS configs
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.

110 lines
3.6 KiB

  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. { config, pkgs, ... }:
  5. {
  6. imports =
  7. [ # Include the results of the hardware scan.
  8. ./hardware-configuration.nix
  9. ];
  10. # Use the GRUB 2 boot loader.
  11. boot.loader.grub.enable = true;
  12. boot.loader.grub.version = 2;
  13. # boot.loader.grub.efiSupport = true;
  14. # boot.loader.grub.efiInstallAsRemovable = true;
  15. # boot.loader.efi.efiSysMountPoint = "/boot/efi";
  16. # Define on which hard drive you want to install Grub.
  17. boot.loader.grub.device = "/dev/vda"; # or "nodev" for efi only
  18. networking.hostName = "nixbox"; # Define your hostname.
  19. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  20. # Set your time zone.
  21. time.timeZone = "US/Eastern";
  22. # The global useDHCP flag is deprecated, therefore explicitly set to false here.
  23. # Per-interface useDHCP will be mandatory in the future, so this generated config
  24. # replicates the default behaviour.
  25. networking.useDHCP = false;
  26. networking.interfaces.enp1s0.useDHCP = true;
  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. # Select internationalisation properties.
  31. i18n.defaultLocale = "en_US.UTF-8";
  32. console = {
  33. font = "Lat2-Terminus16";
  34. keyMap = "us";
  35. };
  36. # Enable the X11 windowing system.
  37. services.xserver.enable = true;
  38. services.xserver.displayManager.startx.enable = true;
  39. # use nix flakes
  40. nix = {
  41. package = pkgs.nixFlakes; # or versioned attributes like nix_2_7
  42. extraOptions = ''
  43. experimental-features = nix-command flakes
  44. '';
  45. };
  46. # Configure keymap in X11
  47. services.xserver.layout = "us";
  48. services.xserver.xkbOptions = "eurosign:e";
  49. # Enable CUPS to print documents.
  50. # services.printing.enable = true;
  51. # Enable sound.
  52. sound.enable = true;
  53. hardware.pulseaudio.enable = true;
  54. # Enable touchpad support (enabled default in most desktopManager).
  55. services.xserver.libinput.enable = true;
  56. # Define a user account. Don't forget to set a password with ‘passwd’.
  57. users.users.junikim = {
  58. isNormalUser = true;
  59. extraGroups = [ "wheel" "video" "audio" "input" ]; # Enable ‘sudo’ for the user.
  60. };
  61. # List packages installed in system profile. To search, run:
  62. # $ nix search wget
  63. environment.systemPackages = with pkgs; [
  64. vim neovim wget zsh brave
  65. ];
  66. # Some programs need SUID wrappers, can be configured further or are
  67. # started in user sessions.
  68. # programs.mtr.enable = true;
  69. # programs.gnupg.agent = {
  70. # enable = true;
  71. # enableSSHSupport = true;
  72. # };
  73. # List services that you want to enable:
  74. # Enable the OpenSSH daemon.
  75. # services.openssh.enable = true;
  76. # Open ports in the firewall.
  77. # networking.firewall.allowedTCPPorts = [ ... ];
  78. # networking.firewall.allowedUDPPorts = [ ... ];
  79. # Or disable the firewall altogether.
  80. # networking.firewall.enable = false;
  81. # This value determines the NixOS release from which the default
  82. # settings for stateful data, like file locations and database versions
  83. # on your system were taken. It‘s perfectly fine and recommended to leave
  84. # this value at the release version of the first install of this system.
  85. # Before changing this value read the documentation for this option
  86. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  87. system.stateVersion = "21.11"; # Did you read the comment?
  88. }