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.

164 lines
3.8 KiB

  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. ripgrep
  72. fzf
  73. python3
  74. xfce.thunar
  75. xfce.xfconf # needed to save preferences of thunar
  76. screenfetch
  77. htop
  78. alacritty
  79. zathura
  80. mate.atril
  81. firefox
  82. qutebrowser
  83. chromium
  84. xfce.ristretto
  85. pavucontrol
  86. texlive.combined.scheme-medium # includes latexmk
  87. #pgf-umlsd # latex diagrams
  88. #pgf
  89. (pkgs.texlive.combine {
  90. inherit (pkgs.texlive)
  91. scheme-medium
  92. pgf
  93. ;
  94. })
  95. sage
  96. rustup
  97. gcc
  98. go
  99. nodejs
  100. xclip # to make clipboard work in neovim
  101. xfce.xfce4-screenshooter
  102. mpv
  103. xorg.xmodmap
  104. gnupg
  105. ];
  106. programs.zsh.enable = true;
  107. users.defaultUserShell = pkgs.zsh;
  108. environment.shells = with pkgs; [zsh];
  109. # Some programs need SUID wrappers, can be configured further or are
  110. # started in user sessions.
  111. # programs.mtr.enable = true;
  112. # programs.gnupg.agent = {
  113. # enable = true;
  114. # enableSSHSupport = true;
  115. # };
  116. # List services that you want to enable:
  117. # Enable the OpenSSH daemon.
  118. # services.openssh.enable = true;
  119. # Open ports in the firewall.
  120. # networking.firewall.allowedTCPPorts = [ ... ];
  121. # networking.firewall.allowedUDPPorts = [ ... ];
  122. # Or disable the firewall altogether.
  123. # networking.firewall.enable = false;
  124. # This value determines the NixOS release from which the default
  125. # settings for stateful data, like file locations and database versions
  126. # on your system were taken. It‘s perfectly fine and recommended to leave
  127. # this value at the release version of the first install of this system.
  128. # Before changing this value read the documentation for this option
  129. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  130. system.stateVersion = "23.05"; # Did you read the comment?
  131. # gvfs needed for Thunar to detect external disks
  132. services.gvfs.enable = true;
  133. # bluetooth related
  134. hardware.bluetooth.enable = true;
  135. services.blueman.enable = true;
  136. # obs virtual camera
  137. boot.extraModulePackages = with config.boot.kernelPackages; [
  138. v4l2loopback
  139. ];
  140. }