Lemur Pro nixos dotfiles
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.

163 lines
4.9 KiB

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