EdgeLordKirito

Nixos Config

Mar 17th, 2024
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.90 KB | Source Code | 0 0
  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.  
  5. { config, pkgs, ... }:
  6.  
  7. {
  8. imports =
  9. [ # Include the results of the hardware scan.
  10. ./hardware-configuration.nix
  11. ];
  12.  
  13. # Bootloader.
  14. boot.loader.grub.enable = true;
  15. boot.loader.grub.device = "/dev/sda";
  16. boot.loader.grub.useOSProber = true;
  17.  
  18. networking.hostName = "nixos"; # Define your hostname.
  19. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  20.  
  21. # Configure network proxy if necessary
  22. # networking.proxy.default = "http://user:password@proxy:port/";
  23. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  24.  
  25. # Enable networking
  26. networking.networkmanager.enable = true;
  27.  
  28. # Set your time zone.
  29. time.timeZone = "Europe/Vienna";
  30.  
  31. # Select internationalisation properties.
  32. i18n.defaultLocale = "en_US.UTF-8";
  33.  
  34. i18n.extraLocaleSettings = {
  35. LC_ADDRESS = "de_AT.UTF-8";
  36. LC_IDENTIFICATION = "de_AT.UTF-8";
  37. LC_MEASUREMENT = "de_AT.UTF-8";
  38. LC_MONETARY = "de_AT.UTF-8";
  39. LC_NAME = "de_AT.UTF-8";
  40. LC_NUMERIC = "de_AT.UTF-8";
  41. LC_PAPER = "de_AT.UTF-8";
  42. LC_TELEPHONE = "de_AT.UTF-8";
  43. LC_TIME = "de_AT.UTF-8";
  44. };
  45.  
  46. # Configure keymap in X11
  47. services.xserver = {
  48. layout = "de";
  49. xkbVariant = "";
  50. };
  51.  
  52. services.xserver.enable = true;
  53. services.xserver.windowManager.i3.enable = true;
  54.  
  55. hardware.bluetooth.enable = true; # Enables bluetooth support
  56. #hardware.bluetooth.powerOnboot = true; # does not work
  57. services.blueman.enable = true;
  58.  
  59. programs.zsh.enable = true; # enable zsh system wide
  60. users.defaultUserShell = pkgs.zsh;
  61.  
  62. # Configure console keymap
  63. console.keyMap = "de";
  64.  
  65. # Define a user account. Don't forget to set a password with ‘passwd’.
  66. users.users.edgelordkirito = {
  67. isNormalUser = true;
  68. description = "Till Leiteritz";
  69. extraGroups = [ "networkmanager" "wheel" ];
  70. packages = with pkgs; [];
  71. };
  72.  
  73. nixpkgs.config = {
  74. allowUnfree = true;
  75. packageOverrides = pkgs: {
  76. unstable = import <nixpkgs-unstable>{
  77. config = config.nixpkgs.config;
  78. };
  79. };
  80. };
  81.  
  82. # Allow unfree packages
  83. nixpkgs.config.allowUnfree = true;
  84.  
  85. # List packages installed in system profile. To search, run:
  86. # $ nix search wget
  87. environment.systemPackages = with pkgs; [
  88. # Calculator
  89. bc
  90. gnome.gnome-calculator
  91. # Image Processing
  92. gimp
  93. krita
  94. # Text Processing
  95. neovim
  96. # Version Control
  97. git
  98. # File Interaction
  99. lf
  100. yazi
  101. pcmanfm
  102. # Terminals
  103. unstable.alacritty
  104. tmux
  105. #Shell
  106. zsh # might conflict with the added option for zsh
  107. # GUI Enviroment
  108. picom
  109. rofi
  110. starship
  111. feh
  112. lxappearance
  113. wallust
  114. # Gtk Themes
  115. arc-theme
  116. # Cursor Themes
  117. quintom-cursor-theme
  118. # Icon Themes
  119. papirus-icon-theme
  120. # Web
  121. firefox
  122. #Fonts
  123. #nerdfonts # Test if this is needed if fonts are listed separetly
  124. # Misc
  125. obsidian
  126. pika-backup
  127. # In Testing
  128. i3blocks
  129. alejandra
  130. # Coding
  131. dotnet-sdk_8
  132. jdk17
  133. rustup
  134. # ShellApps
  135. stow
  136. tree
  137. neofetch
  138. ookla-speedtest
  139. wget
  140. bottom
  141. #ncmcpp
  142. gnupg1orig
  143. killall
  144. inxi
  145. ];
  146.  
  147.  
  148. nixpkgs.config.permittedInsecurePackages = [
  149. "electron-25.9.0"
  150. ];
  151.  
  152. programs.neovim = {
  153. enable = true;
  154. defaultEditor = true;
  155. };
  156.  
  157. # Fonts
  158. fonts.packages = with pkgs; [
  159. fira-code
  160. fira-code-symbols
  161. nerdfonts
  162. ];
  163.  
  164. # Some programs need SUID wrappers, can be configured further or are
  165. # started in user sessions.
  166. # programs.mtr.enable = true;
  167. # programs.gnupg.agent = {
  168. # enable = true;
  169. # enableSSHSupport = true;
  170. # };
  171.  
  172. # List services that you want to enable:
  173.  
  174. # Enable the OpenSSH daemon.
  175. services.openssh.enable = true;
  176.  
  177. # Open ports in the firewall.
  178. # networking.firewall.allowedTCPPorts = [ ... ];
  179. # networking.firewall.allowedUDPPorts = [ ... ];
  180. # Or disable the firewall altogether.
  181. # networking.firewall.enable = false;
  182.  
  183.  
  184. # programs.nix-ld.eable = true;
  185. # programs.nix-ld.libraries = with pkgs; [
  186. # # Add any missing dynamic libraries for unpackaged
  187. # # programs here, Not in enviroment.systemPackages
  188. # ];
  189.  
  190. # This value determines the NixOS release from which the default
  191. # settings for stateful data, like file locations and database versions
  192. # on your system were taken. It‘s perfectly fine and recommended to leave
  193. # this value at the release version of the first install of this system.
  194. # Before changing this value read the documentation for this option
  195. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  196. system.stateVersion = "23.11"; # Did you read the comment?
  197.  
  198. }
Advertisement
Add Comment
Please, Sign In to add comment