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.

144 lines
4.3 KiB

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