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
3.8 KiB

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