bosoMT

Untitled

Jan 28th, 2020
588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.24 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. {
  9. imports =
  10. [ # Include the results of the hardware scan.
  11. ./hardware-configuration.nix
  12. ];
  13.  
  14. # Specify the encrypted disk
  15. boot.initrd.luks.devices = [
  16. {
  17. name = "root";
  18. device = "/dev/nvme0n1p2";
  19. preLVM = true;
  20. }
  21. ];
  22.  
  23. nixpkgs.config.packageOverrides = pkgs: with pkgs; rec {
  24. trezord = pkgs.trezord.overrideAttrs (attrs: rec {
  25. name = "trezord-go-${version}";
  26. version = "2.0.master";
  27. src = fetchFromGitHub {
  28. owner = "trezor";
  29. repo = "trezord-go";
  30. rev = "1ff6715";
  31. sha256 = "12rh54q0nhxnvsjdyrm00ckfvq6dgjhnvkg9vigdci8497adzpqm";
  32. }; });
  33. };
  34.  
  35. # Enable latest kernel updates
  36. boot.kernelPackages = pkgs.linuxPackages_latest;
  37.  
  38. # Use the systemd-boot EFI boot loader.
  39. boot.loader.systemd-boot.enable = true;
  40. boot.loader.efi.canTouchEfiVariables = true;
  41.  
  42. # Steam support
  43. hardware.opengl.driSupport32Bit = true;
  44. hardware.pulseaudio.support32Bit = true;
  45.  
  46. # Networking setup
  47. networking.hostName = "tbosansk";
  48.  
  49. # Enable NetworkManager
  50. networking.networkmanager.enable = true;
  51.  
  52. # Enable wireless support via wpa_supplicant.
  53. # networking.wireless.enable = true;
  54.  
  55. # Configure network proxy if necessary
  56. # networking.proxy.default = "http://user:password@proxy:port/";
  57. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  58.  
  59. # Select internationalisation properties.
  60. # i18n = {
  61. # consoleFont = "Lat2-Terminus16";
  62. # consoleKeyMap = "us";
  63. # defaultLocale = "en_US.UTF-8";
  64. # };
  65.  
  66.  
  67. # Root password
  68. users.users.root.initialHashedPassword = "$6$5SRMlVUg6R.h$mfAKoHA3UKkDAKg51rnGYHnfCXYJOgFkT9GOCOZnEvepMJ7Y9Di9MsuuWEx4z/V0N7vhoh8IiN00FQyoSoNP60";
  69.  
  70. # Allow unfree proprietary packages such as spotify or vscode
  71. nixpkgs.config.allowUnfree = true;
  72.  
  73. # List packages installed in system profile. To search, run:
  74. # $ nix search wget
  75.  
  76. # KDE environment
  77. environment.systemPackages = with pkgs; [
  78. # System utilities
  79. ark
  80. dmidecode
  81. gitAndTools.gitFull
  82. gnupg
  83. gparted
  84. htop
  85. ntfs3g
  86. # unar
  87. unzip
  88. vim
  89. wget
  90. # Desktop utilities
  91. audacious
  92. chromium
  93. dropbox
  94. evince
  95. filelight
  96. firefox
  97. #gimp-with-plugins
  98. kcalc
  99. keepassx2
  100. killall
  101. krusader
  102. libreoffice-fresh
  103. nextcloud-client
  104. notepadqq
  105. peek
  106. phototonic
  107. slack
  108. spectacle
  109. tdesktop
  110. thunderbird
  111. vlc
  112. wine
  113. # Other stuff
  114. (python3.withPackages(ps: with ps; [ trezor trezor_agent ]))
  115. # Optional stuff
  116. #spotify
  117. #steam
  118. #vscode
  119. ];
  120.  
  121. # Enabling unfree channel
  122. environment.interactiveShellInit = ''
  123. if [ ! -f ~/.config/nixpkgs/config.nix ]
  124. then
  125. mkdir -p ~/.config/nixpkgs/
  126. echo '{ allowUnfree = true; }' > ~/.config/nixpkgs/config.nix
  127. fi
  128. '';
  129.  
  130.  
  131. # Some programs need SUID wrappers, can be configured further or are
  132. # started in user sessions.
  133. # programs.mtr.enable = true;
  134. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  135. programs.gnupg.agent.enable = true;
  136.  
  137. # List services that you want to enable:
  138.  
  139. # Enable the OpenSSH daemon.
  140.  
  141. # Enable TOR
  142. #services.tor.enable = true;
  143.  
  144. # Enable Trezor Bridge
  145. services.trezord.enable = true;
  146.  
  147. # Enable the OpenSSH daemon.
  148. # services.openssh.enable = true;
  149.  
  150. # Open ports in the firewall.
  151. # networking.firewall.allowedTCPPorts = [ ... ];
  152. # networking.firewall.allowedUDPPorts = [ ... ];
  153. # Or disable the firewall altogether.
  154. # networking.firewall.enable = false;
  155.  
  156.  
  157. # Enable CUPS to print documents.
  158. services.printing.enable = true;
  159. #services.illum.enable = true;
  160.  
  161. # Enable sound.
  162. sound.enable = true;
  163. hardware.bluetooth.enable = true;
  164. hardware.pulseaudio = {
  165. enable = true;
  166. package = pkgs.pulseaudioFull;
  167. };
  168.  
  169. # Enable the X11 windowing system.
  170. services.xserver.enable = true;
  171. services.xserver.layout = "us";
  172. services.xserver.xkbOptions = "eurosign:e";
  173.  
  174. # Enable touchpad support.
  175. services.xserver.libinput.enable = false;
  176.  
  177. # Enable Lenovo/IBM touchpad support
  178. services.xserver.synaptics.enable = true;
  179.  
  180. # Default displayManager is LightDM
  181. # Enable SDDM displayManager
  182. services.xserver.displayManager.sddm.enable = true;
  183.  
  184. # Enable SLiM displayManager
  185. #services.xserver.displayManager.slim.enable = true;
  186.  
  187. # Enable the KDE Desktop Environment.
  188. services.xserver.desktopManager.plasma5.enable = true;
  189.  
  190. # Enable for Mate Desktop Environment
  191. # services.xserver.desktopManager.mate.enable = true;
  192.  
  193. # Enable for Gnome Desktop Environment
  194. # services.xserver.displayManager.gdm.enable = true
  195. # services.xserver.desktopManager.gnome3.enable = true;
  196.  
  197.  
  198. # Set your time zone.
  199. time.timeZone = "Europe/Prague";
  200.  
  201. # Define a user account. Don't forget to set a password with ‘passwd’.
  202. users.users.tbosansk = {
  203. isNormalUser = true;
  204. uid = 1000;
  205. createHome = true;
  206. home = "/home/tbosansk/";
  207. extraGroups = [ "wheel" "networkmanager" ]; # additional groups [ "vboxusers" "docker"];
  208. };
  209. users.users.alenka = {
  210. isNormalUser = true;
  211. uid = 1001;
  212. createHome = true;
  213. home = "/home/alenka/";
  214. extraGroups = [ "wheel" "networkmanager" ]; # additional groups [ "vboxusers" "docker"];
  215. };
  216.  
  217. # Enable Docker
  218. # virtualisation.docker.enable = true;
  219.  
  220. # Enable VirtualBox
  221. # virtualisation.virtualbox.host.enable = true;
  222.  
  223. # Enable VirtualBox ExtensionPack (necessary for USB drivers higher than 1.1)
  224. # virtualisation.virtualbox.host.enableExtensionPack = true;
  225.  
  226. # Disable VirtualBox hardening
  227. # virtualisation.virtualbox.host.enableHardening = false;
  228.  
  229. # This value determines the NixOS release with which your system is to be
  230. # compatible, in order to avoid breaking some software such as database
  231. # servers. You should change this only after NixOS release notes say you
  232. # should.
  233. system.stateVersion = "19.03"; # Did you read the comment?
  234.  
  235.  
  236. }
Add Comment
Please, Sign In to add comment