2015-08-25 00:05:28 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
2015-08-25 11:42:45 +02:00
|
|
|
# System
|
|
|
|
|
2015-08-25 00:05:28 +02:00
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
boot.loader.grub.version = 2;
|
|
|
|
boot.loader.grub.device = "/dev/sdd";
|
|
|
|
|
2015-08-27 15:01:41 +02:00
|
|
|
fileSystems."/".options = "discard,noatime";
|
|
|
|
|
2015-08-25 15:56:45 +02:00
|
|
|
time.timeZone = "Italy/Rome";
|
|
|
|
|
2015-08-25 00:55:56 +02:00
|
|
|
networking.hostName = "Fazo-PC"; # Define your hostname.
|
2015-08-25 00:05:28 +02:00
|
|
|
networking.hostId = "6bc261fc";
|
|
|
|
|
|
|
|
i18n = {
|
|
|
|
consoleFont = "lat9w-16";
|
|
|
|
consoleKeyMap = "it";
|
|
|
|
defaultLocale = "en_US.UTF-8";
|
|
|
|
};
|
|
|
|
|
2015-08-25 11:42:45 +02:00
|
|
|
# Packages
|
|
|
|
|
|
|
|
nixpkgs.config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
rxvt_unicode = {
|
|
|
|
perlSupport = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-08-25 00:05:28 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
2015-08-25 11:42:45 +02:00
|
|
|
# Development
|
2015-08-27 15:01:41 +02:00
|
|
|
atom git nodejs
|
2015-08-25 11:42:45 +02:00
|
|
|
# Desktop and appliations
|
2015-08-27 15:01:41 +02:00
|
|
|
sxhkd tmux htop vim ranger w3m rxvt_unicode chromium dmenu gnupg irssi bar bc i3lock
|
2015-08-26 00:56:33 +02:00
|
|
|
# Games
|
|
|
|
minecraft
|
2015-08-25 11:42:45 +02:00
|
|
|
# Media
|
2015-08-27 15:01:41 +02:00
|
|
|
mpv beets mpd mpc_cli popcorntime
|
2015-08-25 15:56:45 +02:00
|
|
|
# System utilities, drivers...
|
2015-08-27 15:01:41 +02:00
|
|
|
ntfs3g
|
2015-08-25 11:42:45 +02:00
|
|
|
# Services
|
2015-08-25 16:15:14 +02:00
|
|
|
syncthing transmission
|
2015-08-25 11:42:45 +02:00
|
|
|
# Other stuff
|
2015-08-26 00:56:33 +02:00
|
|
|
screenfetch scrot iotop iftop
|
2015-08-25 00:05:28 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
fonts = {
|
|
|
|
enableFontDir = true;
|
|
|
|
enableGhostscriptFonts = true;
|
|
|
|
fonts = with pkgs; [
|
|
|
|
gohufont
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2015-08-25 11:42:45 +02:00
|
|
|
# Services
|
|
|
|
|
2015-08-27 15:01:41 +02:00
|
|
|
services = {
|
|
|
|
# SSH
|
|
|
|
openssh = {
|
|
|
|
enable = true;
|
|
|
|
permitRootLogin = "no";
|
|
|
|
passwordAuthentication = false;
|
|
|
|
};
|
2015-08-25 00:05:28 +02:00
|
|
|
|
2015-08-27 15:01:41 +02:00
|
|
|
# Desktop Environment
|
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
videoDrivers = [ "nvidia" ];
|
|
|
|
layout = "it";
|
|
|
|
windowManager.bspwm.enable = true;
|
|
|
|
desktopManager.xterm.enable = false;
|
|
|
|
desktopManager.default = "none";
|
|
|
|
windowManager.default = "bspwm";
|
|
|
|
};
|
2015-08-25 00:05:28 +02:00
|
|
|
};
|
|
|
|
|
2015-08-25 11:42:45 +02:00
|
|
|
# User environment
|
|
|
|
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
shellInit = "export ZDOTDIR=~/.config/zsh";
|
|
|
|
};
|
|
|
|
|
2015-08-25 00:05:28 +02:00
|
|
|
users.extraUsers.fazo = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" ];
|
|
|
|
uid = 1000;
|
|
|
|
shell = "/run/current-system/sw/bin/zsh";
|
2015-08-25 11:42:45 +02:00
|
|
|
openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIqHaL0uH1ko/jLI3JeetD4bITUF34IE9HTEvF2Go8JYbhk3YSsG0/EoNu8dhA35S45Y7TXUk/K0axcqmFUePVwY271b7L+9I7/ehUg1wHOaNLCf/ueAyRfo5ZUHuH1YnTg9TinwVi0dynjVMaaVDR1YWVgzuw0KTEDW5em5m+jRbDvFrrq72D2GD/fYqkc2Z/cmnRijMi26PCF1xTq4g6BlIUYloCN+ZlDRvkSWiqCcFD3a/QOZXsUBVg80K4QrHVwj4+Bu2M1KDLhmW+8fzMkbwzKumUFt9SwcQh5Tq/MQfzSWOO2wtn1sys0BDKGazJwn9gMFNkcFbRsD5Uqcgh fazo@mac.lan" ];
|
2015-08-25 00:05:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|