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.

120 lines
3.3 KiB

  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. ./common-configuration.nix
  10. ./hardware-configuration.nix
  11. ./surface-extra-hardware-configuration.nix
  12. ./private-configuration.nix
  13. ];
  14. # Bootloader.
  15. boot.loader.systemd-boot.enable = true;
  16. boot.loader.efi.canTouchEfiVariables = true;
  17. # Setup keyfile
  18. boot.initrd.secrets = {
  19. "/crypto_keyfile.bin" = null;
  20. };
  21. networking.hostName = "nixos"; # Define your hostname.
  22. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  23. # Configure network proxy if necessary
  24. # networking.proxy.default = "http://user:password@proxy:port/";
  25. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  26. # Enable networking
  27. networking.networkmanager.enable = true;
  28. # Set your time zone.
  29. time.timeZone = "Europe/Madrid";
  30. # Select internationalisation properties.
  31. i18n.defaultLocale = "en_US.UTF-8";
  32. i18n.extraLocaleSettings = {
  33. LC_ALL = "en_US.UTF-8";
  34. };
  35. # Configure keymap in X11
  36. services.xserver = {
  37. layout = "us";
  38. xkbVariant = "";
  39. enable=true;
  40. displayManager = {
  41. defaultSession = "none+i3";
  42. };
  43. windowManager.i3 = {
  44. enable=true;
  45. extraPackages = with pkgs; [
  46. dmenu
  47. i3status
  48. i3lock
  49. ];
  50. };
  51. };
  52. # Define a user account. Don't forget to set a password with ‘passwd’.
  53. users.users.userc = {
  54. isNormalUser = true;
  55. description = "userc";
  56. extraGroups = [ "networkmanager" "wheel" ];
  57. packages = with pkgs; [];
  58. };
  59. # Allow unfree packages
  60. nixpkgs.config.allowUnfree = true;
  61. programs.zsh.enable = true;
  62. users.defaultUserShell = pkgs.zsh;
  63. environment.shells = with pkgs; [zsh];
  64. # Some programs need SUID wrappers, can be configured further or are
  65. # started in user sessions.
  66. # programs.mtr.enable = true;
  67. # programs.gnupg.agent = {
  68. # enable = true;
  69. # enableSSHSupport = true;
  70. # };
  71. # List services that you want to enable:
  72. # Enable the OpenSSH daemon.
  73. # services.openssh.enable = true;
  74. # Open ports in the firewall.
  75. # networking.firewall.allowedTCPPorts = [ ... ];
  76. # networking.firewall.allowedUDPPorts = [ ... ];
  77. # Or disable the firewall altogether.
  78. # networking.firewall.enable = false;
  79. # This value determines the NixOS release from which the default
  80. # settings for stateful data, like file locations and database versions
  81. # on your system were taken. It‘s perfectly fine and recommended to leave
  82. # this value at the release version of the first install of this system.
  83. # Before changing this value read the documentation for this option
  84. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  85. system.stateVersion = "23.05"; # Did you read the comment?
  86. # gvfs needed for Thunar to detect external disks
  87. services.gvfs.enable = true;
  88. # bluetooth related
  89. hardware.bluetooth.enable = true;
  90. services.blueman.enable = true;
  91. # obs virtual camera
  92. boot.extraModulePackages = with config.boot.kernelPackages; [
  93. v4l2loopback
  94. ];
  95. }