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, ... }:
- {
- imports =
- [ # Include the results of the hardware scan.
- ./hardware-configuration.nix
- ];
- nixpkgs.config.allowUnfree = true;
- # Use the GRUB 2 boot loader.
- boot.loader.grub.enable = true;
- boot.loader.grub.version = 2;
- # boot.loader.grub.efiSupport = true;
- # boot.loader.grub.efiInstallAsRemovable = true;
- # boot.loader.efi.efiSysMountPoint = "/boot/efi";
- # Define on which hard drive you want to install Grub.
- boot.loader.grub.device = "nodev"; # or "nodev" for efi only
- boot.blacklistedKernelModules = [ "i915" ]; # to disable the integrated intel graphics
- networking.hostName = "HOSTNAME"; # Define your hostname.
- networking.networkmanager.enable = true;
- # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
- # Select internationalisation properties.
- i18n = {
- consoleFont = "Lat2-Terminus16";
- consoleKeyMap = "sv-latin1"; # "us";
- defaultLocale = "en_US.UTF-8";
- };
- # Set your time zone.
- time.timeZone = "Europe/Stockholm";
- fonts = {
- enableFontDir = true;
- fonts = with pkgs; [
- corefonts
- fira-code
- fira-mono
- inconsolata
- terminus_font
- dejavu_fonts
- font-awesome-ttf
- ubuntu_font_family
- source-code-pro
- source-sans-pro
- source-serif-pro
- ];
- };
- # List packages installed in system profile. To search by name, run:
- # $ nix-env -qaP | grep wget
- environment.systemPackages = with pkgs; [
- ntfs3g
- # bashCompletion
- (import ./vim.nix)
- firefox
- mpv
- vlc
- i3status i3blocks i3lock
- lm_sensors playerctl sysstat acpi
- # qutebrowser
- rxvt_unicode
- dmenu
- pulseaudioFull pavucontrol pamixer
- dwarf-fortress
- ];
- # to achieve similar bash features as ubuntus standard--> might make bash dogslow
- programs.bash.enableCompletion = true;
- programs.bash.interactiveShellInit = "# Check the window size after every command.\nshopt -s checkwinsize\n\n# Disable hashing (i.e. caching) of command lookups.\nset +h\n\n# Provide a nice prompt if the terminal supports it.\nif [ \"$TERM\" != \"dumb\" -o -n \"$INSIDE_EMACS\" ]; then\n PROMPT_COLOR=\"1;31m\"\n let $UID && PROMPT_COLOR=\"1;32m\"\n PS1=\"\\n\\[\\033[$PROMPT_COLOR\\][\\u@\\h:\\w]\\\\$\\[\\033[0m\\] \"\n if test \"$TERM\" = \"xterm\"; then\n PS1=\"\\[\\033]2;\\h:\\u:\\w\\007\\]$PS1\"\n fi\nfi\n\n\nalias l='ls -alh'\nalias ll='ls -l'\nalias ls='ls --color=tty'\n\n\n";
- # List services that you want to enable:
- services.locate.enable = true;
- # 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;
- hardware.cpu.intel.updateMicrocode = true;
- hardware.pulseaudio.enable = true;
- # Enable the X11 windowing system.
- services.xserver.enable = true;
- services.xserver.layout = "se"; # "us";
- services.xserver.xkbOptions = "eurosign:e";
- services.xserver.videoDrivers = [ "intel" ]; # "nvidia" ];
- hardware.opengl.driSupport32Bit = true;
- services.xserver.libinput.enable = false;
- services.xserver.synaptics.enable = true;
- services.xserver.synaptics.twoFingerScroll = true;
- # Enable the desktop environments
- services.xserver.displayManager.gdm.enable = true;
- services.xserver.desktopManager.gnome3.enable = true;
- # services.xserver.desktopManager.plasma5.enable = true;
- services.xserver.windowManager.i3.enable = true;
- # eduroam (european university) wifi certificate config
- security.pki.certificateFiles = [ "/etc/nixos/eduroam-cert/DigiCertAssuredIDRootCA.crt" ];
- # Define a user account. Don't forget to set a password with ‘passwd’.
- users.extraUsers.USERNAME = {
- isNormalUser = true;
- home = "/home/USERNAME";
- description = "NAME";
- extraGroups = [ "wheel" "networkmanager" "audio" "video" "disk" "systemd-journal" ];
- uid = 1000;
- # shell = "/run/current-system/sw/bin/fish";
- };
- services.nixosManual.showManual = true;
- # The NixOS release to be compatible with for stateful data such as databases.
- system.stateVersion = "17.09";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement