Skip to content

Instantly share code, notes, and snippets.

@alpmestan
Created February 7, 2018 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpmestan/f2f402ee5e84a18fe101aa6268406641 to your computer and use it in GitHub Desktop.
Save alpmestan/f2f402ee5e84a18fe101aa6268406641 to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
environment.variables = {
BROWSER = pkgs.lib.mkOverride 0 "chromium";
EDITOR = pkgs.lib.mkOverride 0 "emacs";
};
environment.systemPackages = with pkgs; [
wget gitAndTools.gitFull networkmanagerapplet openssl htop xorg.xbacklight
source-code-pro terminator spotify tree
chromium mplayer wine steam file hexchat
skype mumble vlc pdftk which zip unrar inetutils
inkscape aspell aspellDicts.fr aspellDicts.en
bashCompletion coreutils elfutils ghostscript
thunderbird binutils gdb nox glxinfo xclip
(emacsWithPackages
(ps: with ps;
[ yaml-mode haskell-mode markdown-mode nix-mode
]
)
)
simplescreenrecorder pavucontrol virtualbox ghcgo
virtmanager virtinst
];
boot.kernelModules = [ "kvm-intel" ];
virtualisation.libvirtd.enable = true;
virtualisation.libvirtd.enableKVM = true;
users.users.alp.extraGroups = [ "libvirtd" ];
environment.variables."LIBVIRT_DEFAULT_URI" = "qemu:///system";
services.xserver = {
enable = true;
layout = "fr";
xkbOptions = "eurosign:e";
autorun = true;
libinput.enable = true;
libinput.scrollMethod = "twofinger";
libinput.horizontalScrolling = true;
libinput.tapping = true;
libinput.tappingDragLock = true;
libinput.disableWhileTyping = true;
monitorSection = ''
DisplaySize 406 228
'';
displayManager.gdm.enable = true;
displayManager.gdm.autoLogin.enable = true;
displayManager.gdm.autoLogin.user = "alp";
desktopManager.gnome3.enable = true;
};
# ... definitely irrelevant stuffs ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment