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.

138 lines
4.2 KiB

2 years ago
2 years ago
2 years ago
2 years ago
  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. # Use the GRUB 2 boot loader.
  7. boot.loader.grub.enable = true;
  8. boot.loader.grub.version = 2;
  9. # boot.loader.grub.efiSupport = true;
  10. # boot.loader.grub.efiInstallAsRemovable = true;
  11. # boot.loader.efi.efiSysMountPoint = "/boot/efi";
  12. # Define on which hard drive you want to install Grub.
  13. boot.loader.grub.device = "/dev/vda"; # or "nodev" for efi only
  14. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  15. # Set your time zone.
  16. time.timeZone = "US/Eastern";
  17. # The global useDHCP flag is deprecated, therefore explicitly set to false here.
  18. # Per-interface useDHCP will be mandatory in the future, so this generated config
  19. # replicates the default behaviour.
  20. networking.useDHCP = false;
  21. networking.interfaces.enp1s0.useDHCP = true;
  22. # Configure network proxy if necessary
  23. # networking.proxy.default = "http://user:password@proxy:port/";
  24. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  25. # Select internationalisation properties.
  26. i18n.defaultLocale = "en_US.UTF-8";
  27. console = {
  28. font = "Lat2-Terminus16";
  29. keyMap = "us";
  30. };
  31. # Enable the X11 windowing system.
  32. services.xserver.enable = true;
  33. # use nix flakes
  34. nix = {
  35. package = pkgs.nixFlakes; # or versioned attributes like nix_2_7
  36. extraOptions = ''
  37. experimental-features = nix-command flakes
  38. '';
  39. };
  40. # Configure keymap in X11
  41. services.xserver.layout = "us";
  42. services.xserver.xkbOptions = "eurosign:e";
  43. # Enable CUPS to print documents.
  44. # services.printing.enable = true;
  45. # Enable sound.
  46. sound.enable = true;
  47. hardware.pulseaudio.enable = true;
  48. # Enable touchpad support (enabled default in most desktopManager).
  49. services.xserver.libinput.enable = true;
  50. # Define a user account. Don't forget to set a password with ‘passwd’.
  51. users.users.junikim = {
  52. isNormalUser = true;
  53. extraGroups = [ "wheel" "video" "audio" "input" ]; # Enable ‘sudo’ for the user.
  54. shell = pkgs.zsh;
  55. };
  56. programs.zsh.enable = true;
  57. programs.zsh.ohMyZsh.enable = true;
  58. programs.zsh.autosuggestions.enable = true;
  59. programs.zsh.shellAliases = {
  60. "gac" = "git add . && git commit";
  61. "v" = "nvim";
  62. "c" = "clear";
  63. "s" = "ls";
  64. "e" = "exit";
  65. "sy" = "systemctl";
  66. "cp" = "cp -r";
  67. };
  68. programs.zsh.ohMyZsh.plugins = [ "git" "command-not-found" ];
  69. programs.zsh.syntaxHighlighting.enable = true;
  70. nixpkgs.config.allowUnfree = true;
  71. environment.homeBinInPath = true;
  72. environment.variables = {
  73. "EDITOR" = "nvim";
  74. };
  75. services.gnome.gnome-keyring.enable = true;
  76. # List packages installed in system profile. To search, run:
  77. # $ nix search wget
  78. fonts.fonts = with pkgs; [
  79. jetbrains-mono
  80. dejavu_fonts
  81. noto-fonts-emoji
  82. iosevka
  83. ];
  84. environment.systemPackages = with pkgs; [
  85. vim neovim neofetch pfetch tmux
  86. fff
  87. nodejs shellcheck
  88. bash dash git
  89. wget brave scrot
  90. nfs-utils gcc gnumake
  91. ];
  92. # Some programs need SUID wrappers, can be configured further or are
  93. # started in user sessions.
  94. # programs.mtr.enable = true;
  95. programs.gnupg.agent = {
  96. enable = true;
  97. #enableSSHSupport = true;
  98. };
  99. # List services that you want to enable:
  100. # Enable the OpenSSH daemon.
  101. # services.openssh.enable = true;
  102. # Open ports in the firewall.
  103. # networking.firewall.allowedTCPPorts = [ ... ];
  104. # networking.firewall.allowedUDPPorts = [ ... ];
  105. # Or disable the firewall altogether.
  106. # networking.firewall.enable = false;
  107. # This value determines the NixOS release from which the default
  108. # settings for stateful data, like file locations and database versions
  109. # on your system were taken. It‘s perfectly fine and recommended to leave
  110. # this value at the release version of the first install of this system.
  111. # Before changing this value read the documentation for this option
  112. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  113. #system.stateVersion = "21.11"; # Did you read the comment?
  114. system.stateVersion = "unstable"; # Did you read the comment?
  115. }