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.

180 lines
4.1 KiB

2 months ago
  1. # This file is meant to be renamed to `configuration.nix`
  2. # Edit this configuration file to define what should be installed on
  3. # your system. Help is available in the configuration.nix(5) man page
  4. # and in the NixOS manual (accessible by running ‘nixos-help’).
  5. { config, pkgs, ... }:
  6. {
  7. imports =
  8. [
  9. ./hardware-configuration.nix
  10. ./surface-extra-hardware-configuration.nix
  11. ./private-configuration.nix
  12. ];
  13. # Bootloader.
  14. boot.loader.systemd-boot.enable = true;
  15. boot.loader.efi.canTouchEfiVariables = true;
  16. # Setup keyfile
  17. boot.initrd.secrets = {
  18. "/crypto_keyfile.bin" = null;
  19. };
  20. networking.hostName = "nixos"; # Define your hostname.
  21. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  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. # Enable networking
  26. networking.networkmanager.enable = true;
  27. # Set your time zone.
  28. time.timeZone = "Europe/Madrid";
  29. # Select internationalisation properties.
  30. i18n.defaultLocale = "en_US.UTF-8";
  31. i18n.extraLocaleSettings = {
  32. LC_ALL = "en_US.UTF-8";
  33. };
  34. # Configure keymap in X11
  35. services.xserver = {
  36. layout = "us";
  37. xkbVariant = "";
  38. enable=true;
  39. displayManager = {
  40. defaultSession = "none+i3";
  41. };
  42. windowManager.i3 = {
  43. enable=true;
  44. extraPackages = with pkgs; [
  45. dmenu
  46. i3status
  47. i3lock
  48. ];
  49. };
  50. };
  51. # Define a user account. Don't forget to set a password with ‘passwd’.
  52. users.users.userc = {
  53. isNormalUser = true;
  54. description = "userc";
  55. extraGroups = [ "networkmanager" "wheel" ];
  56. packages = with pkgs; [];
  57. };
  58. # Allow unfree packages
  59. nixpkgs.config.allowUnfree = true;
  60. # List packages installed in system profile. To search, run:
  61. # $ nix search wget
  62. environment.systemPackages = with pkgs; [
  63. vim
  64. neovim
  65. wget
  66. tmux
  67. git
  68. delta
  69. tig
  70. mosh
  71. bat
  72. lf
  73. ripgrep
  74. fzf
  75. python3
  76. xfce.thunar
  77. xfce.xfconf # needed to save preferences of thunar
  78. screenfetch
  79. htop
  80. alacritty
  81. zathura
  82. mate.atril
  83. firefox
  84. qutebrowser
  85. chromium
  86. xfce.ristretto
  87. pavucontrol
  88. texlive.combined.scheme-medium # includes latexmk
  89. #pgf-umlsd # latex diagrams
  90. #pgf
  91. (pkgs.texlive.combine {
  92. inherit (pkgs.texlive)
  93. scheme-medium
  94. pgf
  95. ;
  96. })
  97. sage
  98. rustup
  99. gcc
  100. go
  101. nodejs
  102. xclip # to make clipboard work in neovim
  103. xfce.xfce4-screenshooter
  104. mpv
  105. xorg.xmodmap
  106. feh
  107. kolourpaint
  108. ];
  109. fonts.packages = with pkgs; [
  110. dina-font
  111. proggyfonts
  112. terminus_font
  113. fira-code
  114. liberation_ttf
  115. noto-fonts
  116. tamsyn
  117. termsyn
  118. gohufont
  119. ];
  120. programs.zsh.enable = true;
  121. users.defaultUserShell = pkgs.zsh;
  122. environment.shells = with pkgs; [zsh];
  123. # Some programs need SUID wrappers, can be configured further or are
  124. # started in user sessions.
  125. # programs.mtr.enable = true;
  126. # programs.gnupg.agent = {
  127. # enable = true;
  128. # enableSSHSupport = true;
  129. # };
  130. # List services that you want to enable:
  131. # Enable the OpenSSH daemon.
  132. # services.openssh.enable = true;
  133. # Open ports in the firewall.
  134. # networking.firewall.allowedTCPPorts = [ ... ];
  135. # networking.firewall.allowedUDPPorts = [ ... ];
  136. # Or disable the firewall altogether.
  137. # networking.firewall.enable = false;
  138. # This value determines the NixOS release from which the default
  139. # settings for stateful data, like file locations and database versions
  140. # on your system were taken. It‘s perfectly fine and recommended to leave
  141. # this value at the release version of the first install of this system.
  142. # Before changing this value read the documentation for this option
  143. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  144. system.stateVersion = "23.05"; # Did you read the comment?
  145. # gvfs needed for Thunar to detect external disks
  146. services.gvfs.enable = true;
  147. # bluetooth related
  148. hardware.bluetooth.enable = true;
  149. services.blueman.enable = true;
  150. # obs virtual camera
  151. boot.extraModulePackages = with config.boot.kernelPackages; [
  152. v4l2loopback
  153. ];
  154. }