Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 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 =
  9. [ # Include the results of the hardware scan.
  10. ./hardware-configuration.nix
  11. ];
  12.  
  13. # Use the systemd-boot EFI boot loader.
  14. boot.loader.systemd-boot.enable = true;
  15. boot.loader.efi.canTouchEfiVariables = true;
  16.  
  17. networking.hostName = "murphy"; # Define your hostname.
  18.  
  19. # The global useDHCP flag is deprecated, therefore explicitly set to false here.
  20. # Per-interface useDHCP will be mandatory in the future, so this generated config
  21. # replicates the default behaviour.
  22. networking.useDHCP = false;
  23. networking.interfaces.eno1.useDHCP = true;
  24.  
  25. # Configure network proxy if necessary
  26. # networking.proxy.default = "http://user:password@proxy:port/";
  27. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  28.  
  29. # Select internationalisation properties.
  30. # i18n = {
  31. # consoleFont = "Lat2-Terminus16";
  32. # consoleKeyMap = "us";
  33. # defaultLocale = "en_US.UTF-8";
  34. # };
  35.  
  36. # Set your time zone.
  37. time.timeZone = "Europe/Paris";
  38.  
  39. # List packages installed in system profile. To search, run:
  40. # $ nix search wget
  41. environment.systemPackages = with pkgs; [
  42. vim
  43. ];
  44.  
  45. # Some programs need SUID wrappers, can be configured further or are
  46. # started in user sessions.
  47. # programs.mtr.enable = true;
  48. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  49.  
  50. # List services that you want to enable:
  51.  
  52. # Enable the OpenSSH daemon.
  53. # services.openssh.enable = true;
  54.  
  55. # Open ports in the firewall.
  56. # networking.firewall.allowedTCPPorts = [ ... ];
  57. # networking.firewall.allowedUDPPorts = [ ... ];
  58. # Or disable the firewall altogether.
  59. # networking.firewall.enable = false;
  60.  
  61. # Enable CUPS to print documents.
  62. # services.printing.enable = true;
  63.  
  64. # Enable sound.
  65. # sound.enable = true;
  66. # hardware.pulseaudio.enable = true;
  67.  
  68. services.xserver = {
  69. enable = true;
  70. layout = "us";
  71. xkbOptions = "caps:escape";
  72.  
  73. desktopManager = {
  74. default = "none";
  75. };
  76.  
  77. windowManager.i3 = {
  78. enable = true;
  79. extraPackages = with pkgs; [
  80. dmenu
  81. i3status
  82. i3lock
  83. ];
  84. };
  85. };
  86.  
  87. # Define a user account. Don't forget to set a password with ‘passwd’.
  88. # users.users.jane = {
  89. # isNormalUser = true;
  90. # extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
  91. # };
  92.  
  93. # This value determines the NixOS release with which your system is to be
  94. # compatible, in order to avoid breaking some software such as database
  95. # servers. You should change this only after NixOS release notes say you
  96. # should.
  97. system.stateVersion = "19.09"; # Did you read the comment?
  98.  
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement