Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.13 KB | None | 0 0
  1. { config, pkgs, ... }:
  2.  
  3. {
  4. imports =
  5. [ # Include the results of the hardware scan.
  6. /etc/nixos/hardware-configuration.nix
  7. /etc/nixos/R.nix
  8. ];
  9.  
  10. # Use the GRUB 2 boot loader.
  11. boot.loader.grub.enable = true;
  12. boot.loader.grub.version = 2;
  13. # boot.loader.grub.efiSupport = true;
  14. # boot.loader.grub.efiInstallAsRemovable = true;
  15. # boot.loader.efi.efiSysMountPoint = "/boot/efi";
  16. # Define on which hard drive you want to install Grub.
  17. boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
  18. boot.initrd.checkJournalingFS = false;
  19.  
  20. # networking.hostName = "nixos"; # Define your hostname.
  21. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  22.  
  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.  
  27. # Select internationalisation properties.
  28. i18n = {
  29. consoleFont = "Lat2-Terminus16";
  30. consoleKeyMap = "uk";
  31. defaultLocale = "en_IE.UTF-8";
  32. };
  33.  
  34. # Set your time zone.
  35. time.timeZone = "Europe/Dublin";
  36.  
  37. # List packages installed in system profile. To search, run:
  38. # $ nix search wget
  39. environment.systemPackages = let
  40. jot = pkgs.haskellPackages.callpackage /home/amy/jot/jot.nix {};
  41. in
  42. [ jot ] ++ (with pkgs; [
  43. auctex
  44. bash
  45. binutils-unwrapped
  46. cabal2nix
  47. curl
  48. dmenu2
  49. docker
  50. dzen2
  51. emacs
  52. firefox
  53. gcc
  54. ghc
  55. ghostscript # for pdf2dsc
  56. gitAndTools.gitFull
  57. gnome3.meld
  58. gnumake
  59. haskellPackages.cabal-install
  60. haskellPackages.stylish-haskell
  61. haskellPackages.X11-xft
  62. kdeApplications.okular
  63. libreoffice
  64. lxqt.qterminal
  65. gnome3.gnome-disk-utility
  66. pandoc
  67. pdfmod
  68. pkgconfig
  69. python
  70. python3
  71. python36Packages.csvkit
  72. rEnv
  73. rsync
  74. stack
  75. sxiv
  76. tectonic
  77. texstudio
  78. texlive.combined.scheme-basic
  79. tree
  80. unison
  81. vlc
  82. x11
  83. xmonad-with-packages
  84. xorg.libX11
  85. xsel
  86. wget
  87. ]);
  88.  
  89. # Some programs need SUID wrappers, can be configured further or are
  90. # started in user sessions.
  91. # programs.mtr.enable = true;
  92. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  93.  
  94. # List services that you want to enable:
  95.  
  96. # Enable the OpenSSH daemon.
  97. # services.openssh.enable = true;
  98.  
  99. # Open ports in the firewall.
  100. # networking.firewall.allowedTCPPorts = [ ... ];
  101. # networking.firewall.allowedUDPPorts = [ ... ];
  102. # Or disable the firewall altogether.
  103. # networking.firewall.enable = false;
  104.  
  105. # Enable CUPS to print documents.
  106. # services.printing.enable = true;
  107.  
  108. # Enable sound.
  109. sound.enable = true;
  110. hardware.pulseaudio.enable = true;
  111.  
  112. # Enable the X11 windowing system.
  113. # services.xserver.enable = true;
  114. # services.xserver.layout = "uk";
  115. # services.xserver.xkbOptions = "eurosign:e";
  116. services.xserver = {
  117. enable = true;
  118. layout = "ie";
  119. windowManager.xmonad = {
  120. enable = true;
  121. enableContribAndExtras = true;
  122. extraPackages = haskellPackages: [
  123. haskellPackages.xmonad
  124. haskellPackages.xmonad-contrib
  125. haskellPackages.xmonad-extras
  126. ];
  127. };
  128. };
  129.  
  130. # Enable touchpad support.
  131. # services.xserver.libinput.enable = true;
  132.  
  133. # Enable the KDE Desktop Environment.
  134. services.xserver.displayManager.sddm.enable = true;
  135. services.xserver.desktopManager.plasma5.enable = true;
  136.  
  137. # Define a user account. Don't forget to set a password with ‘passwd’.
  138. users.users.amy = {
  139. isNormalUser = true;
  140. home = "/home/amy";
  141. description = "Amy de Buitleir";
  142. extraGroups = [ "wheel" "networkmanager" "vboxsf" ];
  143. uid = 1000;
  144. };
  145.  
  146. # This value determines the NixOS release with which your system is to be
  147. # compatible, in order to avoid breaking some software such as database
  148. # servers. You should change this only after NixOS release notes say you
  149. # should.
  150. system.stateVersion = "18.09"; # Did you read the comment?
  151.  
  152. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement