2015-05-21 15:27:06 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
2015-05-21 16:13:47 +02:00
|
|
|
[
|
|
|
|
./common.nix
|
2016-07-22 13:01:40 +02:00
|
|
|
./large-sw.nix
|
2015-05-21 16:13:47 +02:00
|
|
|
./uefi.nix
|
2015-12-06 10:03:22 +01:00
|
|
|
./fstrim.nix
|
2015-05-21 15:27:06 +02:00
|
|
|
];
|
|
|
|
|
2015-09-03 10:41:18 +02:00
|
|
|
environment.etc."lvm/lvm.conf".text = ''
|
|
|
|
devices {
|
|
|
|
issue_discards = 1
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
boot.initrd.luks.devices = [
|
|
|
|
{
|
|
|
|
name = "sda2_crypt";
|
2017-04-09 17:57:14 +02:00
|
|
|
device = "/dev/disk/by-uuid/2e2e2824-e357-4a75-bddc-8cf386cd0f53";
|
2015-09-03 10:41:18 +02:00
|
|
|
preLVM = true;
|
|
|
|
allowDiscards = true;
|
|
|
|
}
|
|
|
|
];
|
2015-05-21 15:27:06 +02:00
|
|
|
|
|
|
|
networking.hostName = "archachatina"; # Define your hostname.
|
|
|
|
networking.hostId = "cc7ea3ba";
|
|
|
|
|
2017-06-29 13:26:46 +02:00
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
|
|
|
2016-09-03 19:27:01 +02:00
|
|
|
services.wakeonlan.interfaces = [
|
|
|
|
{
|
|
|
|
interface = "enp3s0";
|
|
|
|
method = "magicpacket";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2015-06-09 17:40:27 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
beets
|
|
|
|
mediainfo
|
|
|
|
flac
|
2015-08-19 17:45:00 +02:00
|
|
|
|
|
|
|
recoll
|
|
|
|
uvccapture
|
2015-06-09 17:40:27 +02:00
|
|
|
];
|
|
|
|
|
2016-08-26 07:32:38 +02:00
|
|
|
services.thermald.enable = true;
|
|
|
|
|
2015-11-22 12:10:31 +01:00
|
|
|
virtualisation.docker.enable = true;
|
2016-03-26 17:50:33 +01:00
|
|
|
users.extraUsers.gebner.extraGroups = [ "docker" "libvirtd" ];
|
|
|
|
|
2016-06-20 20:44:43 +02:00
|
|
|
virtualisation.virtualbox.host.enable = true;
|
|
|
|
|
2016-03-26 17:50:33 +01:00
|
|
|
# virtualisation.libvirtd.enable = true;
|
|
|
|
networking.firewall.checkReversePath = false;
|
2016-06-20 20:44:43 +02:00
|
|
|
# fileSystems."/var/lib/libvirt/images/vaccaria" = {
|
|
|
|
# device = "//vaccaria.mtlaa.gebner.org/export/tmp/vms";
|
|
|
|
# fsType = "cifs";
|
|
|
|
# options = [ "noauto" "x-systemd.automount" "credentials=/etc/smbcredentials/vaccaria"
|
|
|
|
# "forceuid" "forcegid" "uid=0" "gid=0" ];
|
|
|
|
# };
|
2016-03-26 17:50:33 +01:00
|
|
|
|
|
|
|
hardware.opengl.driSupport32Bit = true;
|
2015-11-22 12:10:31 +01:00
|
|
|
|
2015-11-22 14:13:49 +01:00
|
|
|
services.nix-serve = {
|
|
|
|
enable = true;
|
|
|
|
secretKeyFile = "/etc/nix-serve/secret.key";
|
|
|
|
};
|
2015-11-22 14:04:31 +01:00
|
|
|
networking.firewall.allowedTCPPorts = [ config.services.nix-serve.port ];
|
2015-11-22 12:10:31 +01:00
|
|
|
|
2017-02-14 17:36:35 +01:00
|
|
|
services.openssh.forwardX11 = true;
|
|
|
|
|
|
|
|
# nixpkgs.config.packageOverrides = super: let self = super.pkgs; in {
|
|
|
|
# mesa_drivers = self.mesaDarwinOr (
|
|
|
|
# let mo = self.mesa_noglu.override {
|
|
|
|
# llvmPackages = pkgs.llvmPackages_39;
|
|
|
|
# grsecEnabled = false;
|
|
|
|
# enableTextureFloats = true;
|
|
|
|
# };
|
|
|
|
# in mo.drivers
|
|
|
|
# );
|
|
|
|
# };
|
2015-12-12 09:58:41 +01:00
|
|
|
|
2016-08-26 07:32:38 +02:00
|
|
|
#boot.kernelPackages = pkgs.lib.mkOverride 10 pkgs.linuxPackages_latest;
|
|
|
|
|
2017-02-14 17:36:35 +01:00
|
|
|
services.xserver = {
|
|
|
|
videoDrivers = [ "amdgpu" ];
|
|
|
|
# useGlamor = true;
|
|
|
|
};
|
2016-08-26 07:32:38 +02:00
|
|
|
|
2015-05-21 15:27:06 +02:00
|
|
|
}
|