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.

78 lines
2.1 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. ./private-configuration.nix
  12. ];
  13. # Bootloader.
  14. boot.loader.systemd-boot.enable = true;
  15. boot.loader.efi.canTouchEfiVariables = true;
  16. networking.hostName = "nixos"; # Define your hostname.
  17. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  18. # Enable networking
  19. networking.networkmanager.enable = true;
  20. services.displayManager = {
  21. defaultSession = "none+i3";
  22. };
  23. services.xserver = {
  24. xkb = { # Configure keymap in X11
  25. layout = "us";
  26. variant = "";
  27. };
  28. enable=true;
  29. #displayManager = {
  30. # defaultSession = "none+i3";
  31. #};
  32. windowManager.i3 = {
  33. enable=true;
  34. extraPackages = with pkgs; [
  35. dmenu
  36. i3status
  37. i3lock
  38. ];
  39. };
  40. };
  41. # Define a user account
  42. users.users.user = {
  43. isNormalUser = true;
  44. description = "user";
  45. extraGroups = [ "networkmanager" "wheel" ];
  46. packages = with pkgs; [];
  47. };
  48. # Allow unfree packages
  49. nixpkgs.config.allowUnfree = true;
  50. # This value determines the NixOS release from which the default
  51. # settings for stateful data, like file locations and database versions
  52. # on your system were taken. It‘s perfectly fine and recommended to leave
  53. # this value at the release version of the first install of this system.
  54. # Before changing this value read the documentation for this option
  55. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  56. system.stateVersion = "24.05"; # Did you read the comment?
  57. # gvfs needed for Thunar to detect external disks
  58. services.gvfs.enable = true;
  59. # bluetooth related
  60. hardware.bluetooth.enable = true;
  61. services.blueman.enable = true;
  62. hardware.pulseaudio.enable = true;
  63. }