Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
190 lines (159 sloc) 3.73 KB
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
boot = {
blacklistedKernelModules = [ "snd_pcsp" ];
kernelPackages = pkgs.linuxPackages_latest;
cleanTmpDir = true;
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
supportedFilesystems = [
"exfat"
];
};
networking = {
firewall = {
enable = true;
allowedTCPPorts = [];
allowedUDPPorts = [];
};
hostName = "aya";
networkmanager.enable = true;
};
# Select internationalisation properties.
i18n = {
consoleKeyMap = "dvp";
defaultLocale = "en_US.UTF-8";
};
# nVidia driver
hardware.opengl.driSupport32Bit = true;
hardware.bluetooth.enable = true;
hardware.pulseaudio = {
enable = true;
package = pkgs.pulseaudioFull;
};
services = {
openssh.enable = true;
redshift = {
enable = true;
latitude = "35";
longitude = "139";
};
ntp.enable = true;
nscd.enable = false;
xserver = {
videoDrivers = [ "nvidia" ];
enable = true;
layout = "us";
xkbOptions = "compose:caps";
xkbVariant = "dvp";
synaptics.enable = true;
windowManager.xmonad.enable = true;
windowManager.xmonad.extraPackages = self: [ self.xmonad-contrib ];
windowManager.xmonad.haskellPackages = pkgs.haskell.packages.ghc822;
windowManager.default = "xmonad";
desktopManager.default = "none";
displayManager.lightdm = {
enable = true;
extraSeatDefaults = ''
greeter-show-manual-login=true
greeter-hide-users=true
allow-guest=false
'';
};
displayManager.sessionCommands = ''
${pkgs.xlibs.xsetroot}/bin/xsetroot -cursor_name left_ptr
${pkgs.xscreensaver}/bin/xscreensaver -no-splash &
'';
};
};
users.extraGroups.vboxusers.members = [ "shana" ];
programs.ssh.startAgent = true;
programs.bash.enableCompletion = true;
# Don't blind me
systemd.services.redshift.restartIfChanged = false;
time.timeZone = "Asia/Tokyo";
# Users
users.extraUsers.shana = {
createHome = true;
home = "/home/shana";
description = "Mateusz Kowalczyk";
extraGroups = [ "wheel" "audio" "video" "networkmanager" "docker" ];
useDefaultShell = true;
};
nixpkgs.system = "x86_64-linux";
nixpkgs.config = {
virtualbox.enableExtensionPack = true;
pulseaudio = true;
allowUnfree = true;
};
environment.systemPackages = with pkgs;
[ cacert
cloc
elfutils
emacs
file
firefox-devedition-bin
git
glib
glxinfo
gnupg
gnutls
# haskellPackages.apply-refact
# haskellPackages.hasktags
# haskellPackages.hlint
htop
jq
mpv
mupdf
networkmanager
nitrogen
nmap
openssl
p7zip
pavucontrol
# pythonPackages.youtube-dl
# rtorrent
rxvt_unicode
scrot
sxiv
unzip
wget
xlibs.xsetroot
xscreensaver
xsel
zip
];
fonts = {
fontconfig.enable = true;
enableFontDir = true;
enableGhostscriptFonts = true;
fonts = with pkgs; [
corefonts
dejavu_fonts
inconsolata
source-han-sans-japanese
source-han-sans-korean
source-han-sans-simplified-chinese
source-han-sans-traditional-chinese
ubuntu_font_family
];
};
security.sudo.enable = true;
nix = {
package = pkgs.nixUnstable;
trustedBinaryCaches = [
"http://cache.nixos.org"
];
binaryCaches = [
"http://cache.nixos.org"
];
gc.automatic = false;
maxJobs = pkgs.stdenv.lib.mkForce 6;
};
}