nixos-config/common.nix

78 lines
1.8 KiB
Nix
Raw Normal View History

2015-05-21 16:13:47 +02:00
{ config, pkgs, ... }:
{
imports =
[
/etc/nixos/hardware-configuration.nix
2015-05-27 18:52:02 +02:00
./i3.nix
./basic-tools.nix
./common-sw.nix
2015-05-21 16:13:47 +02:00
];
boot.kernelPackages = pkgs.linuxPackages_latest;
2015-05-21 16:13:47 +02:00
2016-06-02 20:55:12 +02:00
nix.useSandbox = true;
2016-04-24 16:57:21 +02:00
nix.binaryCaches = [ https://cache.nixos.org ];
nix.trustedBinaryCaches = [ https://cache.nixos.org ];
nix.extraOptions = ''
auto-optimise-store = true
binary-caches-parallel-connections = 10
'';
2015-05-21 16:13:47 +02:00
networking.networkmanager.enable = true;
networking.firewall.enable = true;
time.timeZone = "Europe/Vienna";
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
permitRootLogin = "no";
passwordAuthentication = false;
};
programs.ssh.startAgent = false;
# Enable CUPS to print documents.
services.avahi.enable = true; # cups browsing support
2015-12-24 13:06:29 +01:00
services.printing = {
enable = true;
drivers = [ pkgs.hplip ];
};
2015-06-02 16:39:37 +02:00
# services.colord.enable = true;
2015-05-21 16:13:47 +02:00
2016-09-21 15:11:24 +02:00
boot.kernel.sysctl = {
"kernel.perf_event_paranoid" = "0";
# IntelliJ
"fs.inotify.max_user_watches" = 524288;
};
2015-05-21 16:13:47 +02:00
2015-06-02 12:38:56 +02:00
# gapt: `ulimit -n` was 256
security.pam.loginLimits = [
{ domain = "*"; type = "-"; item = "nofile"; value = "4096"; }
];
2015-05-21 16:13:47 +02:00
fileSystems."/mnt/vaccaria" = {
device = "//vaccaria.mtlaa.gebner.org/export";
fsType = "cifs";
options = [ "noauto" "x-systemd.automount" "credentials=/etc/smbcredentials/vaccaria" ];
2015-05-21 16:13:47 +02:00
};
fileSystems."/mnt/aruanus" = {
device = "//aruanus.htdf.gebner.org/export";
fsType = "cifs";
options = [ "noauto" "x-systemd.automount" "credentials=/etc/smbcredentials/aruanus" ];
2015-05-21 16:13:47 +02:00
};
users.extraUsers.gebner = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
2015-09-20 10:45:13 +02:00
# shell = "${pkgs.zsh}/bin/zsh";
2015-09-01 14:16:20 +02:00
password = if config.virtualisation != null then "" else null;
2015-05-21 16:13:47 +02:00
};
2015-08-09 19:35:31 +02:00
system.fsPackages = [ pkgs.ntfs3g ];
2015-05-21 16:13:47 +02:00
}