nixos-config/archachatina.nix

70 lines
1.6 KiB
Nix
Raw Normal View History

2015-05-21 13:27:06 +00:00
{ config, pkgs, ... }:
{
imports =
2015-05-21 14:13:47 +00:00
[
./common.nix
./large-sw.nix
2015-05-21 14:13:47 +00:00
./uefi.nix
2015-12-06 09:03:22 +00:00
./fstrim.nix
2015-05-21 13:27:06 +00:00
];
2015-09-03 08:41:18 +00:00
environment.etc."lvm/lvm.conf".text = ''
devices {
issue_discards = 1
}
'';
boot.initrd.luks.devices = [
{
name = "sda2_crypt";
device = "/dev/disk/by-uuid/663dcfda-081e-40d5-9ba4-62ad73dc5098";
preLVM = true;
allowDiscards = true;
}
];
2015-05-21 13:27:06 +00:00
networking.hostName = "archachatina"; # Define your hostname.
networking.hostId = "cc7ea3ba";
2015-06-09 15:40:27 +00:00
environment.systemPackages = with pkgs; [
beets
mediainfo
flac
2015-08-19 15:45:00 +00:00
recoll
uvccapture
2015-06-09 15:40:27 +00:00
];
2015-11-22 11:10:31 +00:00
virtualisation.docker.enable = true;
2016-03-26 16:50:33 +00:00
users.extraUsers.gebner.extraGroups = [ "docker" "libvirtd" ];
2016-06-20 18:44:43 +00:00
virtualisation.virtualbox.host.enable = true;
2016-03-26 16:50:33 +00:00
# virtualisation.libvirtd.enable = true;
networking.firewall.checkReversePath = false;
2016-06-20 18:44:43 +00: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 16:50:33 +00:00
hardware.opengl.driSupport32Bit = true;
2015-11-22 11:10:31 +00:00
services.nix-serve = {
enable = true;
secretKeyFile = "/etc/nix-serve/secret.key";
};
2015-11-22 13:04:31 +00:00
networking.firewall.allowedTCPPorts = [ config.services.nix-serve.port ];
2015-11-22 11:10:31 +00:00
nixpkgs.config.packageOverrides = super: let self = super.pkgs; in {
# mesa_drivers = self.mesaDarwinOr (
# let mo = self.mesa_noglu.override {
# llvmPackages = self.llvmPackages_36;
# };
# in mo.drivers
# );
};
2015-05-21 13:27:06 +00:00
}