Advertisement
Guest User

Untitled

a guest
Nov 29th, 2020
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.03 KB | None | 0 0
  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.  
  5. { config, pkgs, ... }:
  6.  
  7. {
  8. imports = [ # Include the results of the hardware scan.
  9. ./hardware-configuration.nix
  10. <home-manager/nixos>
  11. ];
  12.  
  13. # Use the systemd-boot EFI boot loader.
  14. boot.loader.systemd-boot.enable = true;
  15. boot.loader.efi.canTouchEfiVariables = true;
  16. boot.loader.grub.useOSProber = true;
  17.  
  18. # networking.hostName = "nixos"; # Define your hostname.
  19. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  20.  
  21. # Set your time zone.
  22. time.timeZone = "Europe/Madrid";
  23.  
  24. # The global useDHCP flag is deprecated, therefore explicitly set to false here.
  25. # Per-interface useDHCP will be mandatory in the future, so this generated config
  26. # replicates the default behaviour.
  27. networking.useDHCP = false;
  28. networking.interfaces.enp34s0.useDHCP = true;
  29. networking.interfaces.wlo1.useDHCP = true;
  30.  
  31. # Configure network proxy if necessary
  32. # networking.proxy.default = "http://user:password@proxy:port/";
  33. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  34.  
  35. # Select internationalisation properties.
  36. # i18n.defaultLocale = "en_US.UTF-8";
  37. # console = {
  38. # font = "Lat2-Terminus16";
  39. # keyMap = "us";
  40. # };
  41.  
  42. # Enable the GNOME 3 Desktop Environment.
  43. services.xserver = {
  44. xkbOptions = "caps:swapescape";
  45. enable = true;
  46. displayManager.gdm.enable = true;
  47. windowManager.i3 = {
  48. enable = true;
  49. package = pkgs.i3-gaps;
  50. extraPackages = with pkgs; [
  51. dmenu #application launcher most people use
  52. i3status # gives you the default i3 status bar
  53. i3lock #default i3 screen locker
  54. i3blocks #if you are planning on using i3blocks over i3status
  55. ];
  56. };
  57. desktopManager = {
  58. xterm.enable = false;
  59. xfce = {
  60. enable = true;
  61. noDesktop = true;
  62. enableXfwm = false;
  63. };
  64. };
  65. displayManager.defaultSession = "xfce+i3";
  66. };
  67.  
  68.  
  69. # Configure keymap in X11
  70. # services.xserver.layout = "us";
  71. # services.xserver.xkbOptions = "eurosign:e";
  72.  
  73. # Enable CUPS to print documents.
  74. # services.printing.enable = true;
  75.  
  76. # Enable sound.
  77. sound.enable = true;
  78. hardware.pulseaudio.enable = true;
  79.  
  80. # Enable touchpad support (enabled default in most desktopManager).
  81. # services.xserver.libinput.enable = true;
  82.  
  83. # Define a user account. Don't forget to set a password with ‘passwd’.
  84. users.mutableUsers = true;
  85. users.users.nixie = {
  86. isNormalUser = true;
  87. extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
  88. };
  89.  
  90. nixpkgs.config.allowUnfree = true;
  91.  
  92. # List packages installed in system profile. To search, run:
  93. # $ nix search wget
  94. environment.systemPackages = with pkgs; [
  95. wget vim neovim
  96. firefox spotify
  97. ];
  98.  
  99. # Some programs need SUID wrappers, can be configured further or are
  100. # started in user sessions.
  101. # programs.mtr.enable = true;
  102. # programs.gnupg.agent = {
  103. # enable = true;
  104. # enableSSHSupport = true;
  105. # };
  106.  
  107. # List services that you want to enable:
  108.  
  109. # Enable the OpenSSH daemon.
  110. # services.openssh.enable = true;
  111.  
  112. # Open ports in the firewall.
  113. # networking.firewall.allowedTCPPorts = [ ... ];
  114. # networking.firewall.allowedUDPPorts = [ ... ];
  115. # Or disable the firewall altogether.
  116. # networking.firewall.enable = false;
  117.  
  118. # This value determines the NixOS release from which the default
  119. # settings for stateful data, like file locations and database versions
  120. # on your system were taken. It‘s perfectly fine and recommended to leave
  121. # this value at the release version of the first install of this system.
  122. # Before changing this value read the documentation for this option
  123. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  124. system.stateVersion = "20.09"; # Did you read the comment?
  125.  
  126. }
  127.  
  128.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement