Klimi's new dotfiles with stow.
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.

140 lines
4.0 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  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. { config, pkgs, ... }:
  5. let
  6. userName = "klimi";
  7. name = "Martin Klimeš <Klimi>";
  8. email = "klimi@sitischu.com";
  9. hostName = "nixos";
  10. timeZone = "Europe/Prague";
  11. dots = "/home/klimi/dotfiles/dotfiles/";
  12. #home-manager = builtins.fetchGit {
  13. # url = "https://github.com/rycee/home-manager.git";
  14. # rev = "dd94a849df69fe62fe2cb23a74c2b9330f1189ed"; # CHANGEME
  15. # ref = "release-18.09";
  16. #};
  17. in {
  18. imports = [ # Include the results of the hardware scan.
  19. ./hardware-configuration.nix
  20. #"${home-manager}/nixos"
  21. #<home-manager/nixos>
  22. ./user.nix
  23. ./machines/G560.nix
  24. ];
  25. # Linux kernel Latest
  26. boot.kernelPackages = pkgs.linuxPackages_latest;
  27. # Use the GRUB 2 boot loader.
  28. # boot.loader.grub.efiSupport = true;
  29. # boot.loader.grub.efiInstallAsRemovable = true;
  30. # boot.loader.efi.efiSysMountPoint = "/boot/efi";
  31. # Define on which hard drive you want to install Grub.
  32. networking = {
  33. hostName = hostName;
  34. networkmanager.enable = true;
  35. };
  36. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  37. # Configure network proxy if necessary
  38. # networking.proxy.default = "http://user:password@proxy:port/";
  39. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  40. # Select internationalisation properties.
  41. i18n = {
  42. consoleFont = "Lat2-Terminus16";
  43. consoleKeyMap = "uk";
  44. defaultLocale = "en_GB.UTF-8";
  45. # consoleUseXkbConfig = true; WELL IDK
  46. };
  47. # Set your time zone.
  48. time.timeZone = timeZone;
  49. # List packages installed in system profile. To search, run: # $ nix search wget
  50. environment.systemPackages = with pkgs; [
  51. wget
  52. vim
  53. git
  54. killall
  55. acpi
  56. gnumake
  57. gcc
  58. xorg.libxcb.dev
  59. wirelesstools
  60. ];
  61. # Some programs need SUID wrappers, can be configured further or are
  62. # started in user sessions.
  63. # programs.mtr.enable = true;
  64. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  65. # List services that you want to enable:
  66. # Enable the OpenSSH daemon.
  67. # services.openssh.enable = true;
  68. nixpkgs.config = {
  69. allowUnfree = true;
  70. };
  71. # Open ports in the firewall.
  72. networking.firewall.allowedTCPPorts = [ 22000 ];
  73. # networking.firewall.allowedUDPPorts = [ ... ];
  74. # Or disable the firewall altogether.
  75. # networking.firewall.enable = false;
  76. # Enable CUPS to print documents.
  77. # services.printing.enable = true;
  78. # Enable sound.
  79. sound.enable = true;
  80. hardware.pulseaudio.enable = true;
  81. # Enable the X11 windowing system.
  82. # services.xserver.enable = true;
  83. # services.xserver.layout = "us";
  84. # services.xserver.xkbOptions = "eurosign:e";
  85. services.xserver = {
  86. enable = true;
  87. layout = "gb";
  88. xkbOptions = "compose:sclk,ctrl:nocaps";
  89. displayManager.sddm.enable = true;
  90. windowManager.bspwm = {
  91. enable = true;
  92. #configFile = "${dots}bspwmrc";
  93. #sxhkd.configFile = "${dots}sxhkdrc";
  94. #sxhkd.configFile = "/home/klimi/dotfiles/dotfiles/sxhkdrc";
  95. ###########################################################
  96. # this doesnt work so i will try to do it in home-manager #
  97. ###########################################################
  98. };
  99. };
  100. # Enable touchpad support.
  101. services.xserver.libinput.enable = true;
  102. # Enable the KDE Desktop Environment.
  103. # services.xserver.displayManager.sddm.enable = true;
  104. # services.xserver.desktopManager.plasma5.enable = true;
  105. # Define a user account. Don't forget to set a password with ‘passwd’.
  106. # in user.nix
  107. # This value determines the NixOS release with which your system is to be
  108. # compatible, in order to avoid breaking some software such as database
  109. # servers. You should change this only after NixOS release notes say you
  110. # should.
  111. system.stateVersion = "19.03"; # Did you read the comment?
  112. }