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.

165 lines
5.0 KiB

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