Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Edit this configuration file to define what should be installed on
- # your system. Help is available in the configuration.nix(5) man page
- # and in the NixOS manual (accessible by running ‘nixos-help’).
- { config, pkgs, ... }:
- # Custom 8 level keyboard https://github.com/emareg/unikeyboard
- let
- compiledLayout = pkgs.runCommand "keyboard-layout" {} ''
- ${pkgs.xorg.xkbcomp}/bin/xkbcomp ${./home/pankaj/.config/xkb/unikeyboard} $out
- '';
- in {
- services.xserver.displayManager.sessionCommands = "${pkgs.xorg.xkbcomp}/bin/xkbcomp ${compiledLayout} $DISPLAY";
- imports =
- [ # Include the results of the hardware scan.
- ./hardware-configuration.nix
- ];
- # Use the systemd-boot EFI boot loader.
- boot.loader.systemd-boot.enable = true;
- boot.loader.efi.canTouchEfiVariables = false;
- boot.kernelParams = [ "boot.shell_on_fail" ];
- # Specify luks devices
- boot.initrd.luks.devices = [
- {
- name = "Nixos";
- device = "/dev/disk/by-uuid/5d1eb3af-d008-48be-a1ea-be8debf774e0";
- preLVM = true;
- allowDiscards = true;
- }
- ];
- networking.hostName = "jarvis"; # Define your hostname.
- #networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
- networking.networkmanager.enable = true; # Enables network manager.
- # Select internationalisation properties.
- # i18n = {
- # consoleFont = "Lat2-Terminus16";
- # consoleKeyMap = "us";
- # defaultLocale = "en_US.UTF-8";
- # };
- # Set your time zone.
- time.timeZone = "Asia/Kolkata";
- # Enable hardware options
- hardware = {
- pulseaudio.enable = true;
- opengl.driSupport32Bit = true;
- bumblebee.enable = true;
- bumblebee.connectDisplay = true;
- # # bumblebee.driver = "nvidia";
- };
- # List packages installed in system profile. To search by name, run:
- # $ nix-env -qaP | grep wget
- nix.extraOptions = " binary-caches-parallel-connections = 50 ";
- nixpkgs.config = {
- allowUnfree = true;
- firefox.enableAdobeFlash=true;
- };
- environment.systemPackages = with pkgs; [
- # drivers
- microcodeIntel glmark2 primus primusLib
- # web
- wget firefox chromium weechat uget qbittorrent google-chrome
- # development
- emacs python3 source-code-pro ag global ycmd sublime3
- # productivity
- vim yakuake git fish rxvt_unicode-with-plugins ranger xclip xkbcomp
- # system utility
- tlp htop gnome3.gnome-disk-utility gparted lm_sensors acpi cpufrequtils ntfs3g lshw linuxPackages.cpupower
- # nixos utility
- nox
- # scientific
- anki
- # latex
- stix-two stix-otf xits-math latinmodern-math
- # documents
- kdeApplications.okular evince kate ark libreoffice
- # user utility
- redshift redshift-plasma-applet xsel unzip lightlocker xflux xflux-gui
- # destop environment
- plasma-pa kdeplasma-addons plasma-desktop kwin kdeFrameworks.krunner
- # multimedia
- mpv smplayer vlc amarok-kf5 youtube-dl gwenview
- # games
- steam steam-run
- ];
- # List services that you want to enable:
- # Enable the OpenSSH daemon.
- # services.openssh.enable = true;
- # Open ports in the firewall.
- # networking.firewall.allowedTCPPorts = [ ... ];
- # networking.firewall.allowedUDPPorts = [ ... ];
- # Or disable the firewall altogether.
- # networking.firewall.enable = false;
- # Enable CUPS to print documents.
- # services.printing.enable = true;
- services = {
- # Enable the X11 windowing system
- xserver = {
- enable = true;
- layout = "us";
- exportConfiguration = true;
- # Enable touchpad
- libinput = {
- enable = true;
- naturalScrolling = false;
- middleEmulation = true;
- tapping = true;
- };
- # Enable KDE Desktop Environment
- desktopManager.plasma5.enable = true;
- displayManager.sddm.enable = true;
- # displayManager.lightdm.enable = true;
- # Enable nvidia proprietary drivers
- videoDrivers = ["intel" "vesa"];
- };
- redshift = {
- enable = true;
- # New Delhi
- latitude = "28.6456024";
- longitude = "77.21110499";
- temperature.night = 3400;
- };
- };
- # Enable programs
- programs.fish.enable = true;
- #programs = {
- # fish.enable = true;
- #};
- # Define a user account. Don't forget to set a password with ‘passwd’.
- users.extraUsers.pankaj = {
- createHome = true;
- isNormalUser = true;
- home = "/home/pankaj";
- description = "Pankaj Bhanu";
- extraGroups = ["wheel" "networkmanager" "video" "disk" "systemd-journal" "log"];
- uid = 1000;
- shell = pkgs.fish;
- };
- # The NixOS release to be compatible with for stateful data such as databases.
- system.stateVersion = "18.03";
- # Add the NixOS Manual on virtual console 8
- services.nixosManual.showManual = true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement