2015-05-21 13:27:06 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
2015-05-21 14:13:47 +00:00
|
|
|
[
|
2020-07-14 14:47:09 +00:00
|
|
|
./common-headless.nix
|
|
|
|
./sway.nix
|
2020-08-01 14:52:23 +00:00
|
|
|
# ./i3.nix
|
2016-07-22 11:01:40 +00:00
|
|
|
./large-sw.nix
|
2015-05-21 14:13:47 +00:00
|
|
|
./uefi.nix
|
2015-12-06 09:03:22 +00:00
|
|
|
./fstrim.nix
|
2018-12-18 16:30:45 +00:00
|
|
|
./qemu-user.nix
|
2019-02-27 10:16:03 +00:00
|
|
|
./atmega.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
|
|
|
|
}
|
|
|
|
'';
|
2020-05-22 09:17:53 +00:00
|
|
|
boot.initrd.luks.devices = {
|
|
|
|
sda2_crypt = {
|
2017-04-09 15:57:14 +00:00
|
|
|
device = "/dev/disk/by-uuid/2e2e2824-e357-4a75-bddc-8cf386cd0f53";
|
2015-09-03 08:41:18 +00:00
|
|
|
preLVM = true;
|
|
|
|
allowDiscards = true;
|
2020-05-22 09:17:53 +00:00
|
|
|
};
|
|
|
|
};
|
2015-05-21 13:27:06 +00:00
|
|
|
|
|
|
|
networking.hostName = "archachatina"; # Define your hostname.
|
|
|
|
networking.hostId = "cc7ea3ba";
|
|
|
|
|
2017-06-29 11:26:46 +00:00
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
|
|
|
2016-09-03 17:27:01 +00:00
|
|
|
services.wakeonlan.interfaces = [
|
|
|
|
{
|
|
|
|
interface = "enp3s0";
|
|
|
|
method = "magicpacket";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2020-08-01 14:52:23 +00:00
|
|
|
# services.xserver.displayManager.defaultSession = pkgs.lib.mkForce "sway";
|
|
|
|
#
|
|
|
|
# users.extraUsers.presentation = {
|
|
|
|
# isNormalUser = true;
|
|
|
|
# extraGroups = [ "networkmanager" "audio" ];
|
|
|
|
# # shell = "${pkgs.zsh}/bin/zsh";
|
|
|
|
# shell = "/run/current-system/sw/bin/fish";
|
|
|
|
#
|
|
|
|
# password = if config.virtualisation != null then "" else null;
|
|
|
|
# };
|
|
|
|
|
2015-06-09 15:40:27 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
beets
|
2019-02-18 18:28:18 +00:00
|
|
|
|
|
|
|
piper
|
2015-06-09 15:40:27 +00:00
|
|
|
];
|
|
|
|
|
2016-08-26 05:32:38 +00:00
|
|
|
services.thermald.enable = true;
|
|
|
|
|
2020-07-24 19:23:06 +00:00
|
|
|
users.extraUsers.gebner.extraGroups = [ "libvirtd" ];
|
2016-03-26 16:50:33 +00:00
|
|
|
|
2019-05-14 14:14:42 +00:00
|
|
|
virtualisation.virtualbox.host.enable = true;
|
2016-06-20 18:44:43 +00:00
|
|
|
|
2018-11-12 18:04:15 +00:00
|
|
|
virtualisation.libvirtd = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2016-03-26 16:50:33 +00:00
|
|
|
networking.firewall.checkReversePath = false;
|
2018-11-12 18:04:15 +00:00
|
|
|
fileSystems."/var/lib/libvirt/images/vaccaria" = {
|
2019-10-14 09:03:14 +00:00
|
|
|
device = "//vaccaria.htdf.gebner.org/export/tmp/vms";
|
2018-11-12 18:04:15 +00:00
|
|
|
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
|
|
|
|
2020-08-22 12:42:24 +00:00
|
|
|
hardware.opengl.extraPackages = with pkgs; [
|
|
|
|
rocm-opencl-icd
|
2020-09-09 17:15:55 +00:00
|
|
|
# rocm-runtime-ext
|
2020-08-22 12:42:24 +00:00
|
|
|
];
|
|
|
|
|
2019-05-14 14:14:42 +00:00
|
|
|
services.nix-serve = {
|
|
|
|
enable = true;
|
|
|
|
secretKeyFile = "/etc/nix-serve/secret.key";
|
|
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ config.services.nix-serve.port ];
|
2015-11-22 11:10:31 +00:00
|
|
|
|
2017-02-14 16:36:35 +00: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 08:58:41 +00:00
|
|
|
|
2016-08-26 05:32:38 +00:00
|
|
|
#boot.kernelPackages = pkgs.lib.mkOverride 10 pkgs.linuxPackages_latest;
|
2019-03-09 21:46:35 +00:00
|
|
|
# boot.kernelPackages = pkgs.lib.mkOverride 10 pkgs.linuxPackages;
|
2020-05-22 09:17:53 +00:00
|
|
|
# boot.kernelPackages = pkgs.lib.mkOverride 10 pkgs.linuxPackages_5_4;
|
2016-08-26 05:32:38 +00:00
|
|
|
|
2017-02-14 16:36:35 +00:00
|
|
|
services.xserver = {
|
|
|
|
videoDrivers = [ "amdgpu" ];
|
2017-10-17 15:37:58 +00:00
|
|
|
deviceSection = ''
|
|
|
|
Option "TearFree" "on"
|
|
|
|
'';
|
2017-02-14 16:36:35 +00:00
|
|
|
};
|
2016-08-26 05:32:38 +00:00
|
|
|
|
2017-11-11 07:48:35 +00:00
|
|
|
services.postgresql = {
|
|
|
|
enable = true;
|
2018-02-24 17:00:00 +00:00
|
|
|
extraPlugins = [ pkgs.postgis ];
|
2017-11-11 07:48:35 +00:00
|
|
|
};
|
|
|
|
|
2019-02-18 18:28:18 +00:00
|
|
|
services.ratbagd.enable = true;
|
|
|
|
|
2019-11-03 12:35:04 +00:00
|
|
|
services.xserver.digimend.enable = true;
|
|
|
|
|
2020-09-09 17:15:55 +00:00
|
|
|
services.udev.extraRules = ''
|
|
|
|
SUBSYSTEM=="input", ENV{ID_BUS}=="usb" ENV{ID_VENDOR_ID}=="256c", \
|
|
|
|
ATTRS{name}=="* Touch *", ENV{ID_INPUT.tags}="low_res_touch"
|
|
|
|
'';
|
|
|
|
|
2019-05-14 14:14:42 +00:00
|
|
|
# virtualisation.anbox = {
|
|
|
|
# enable = true;
|
|
|
|
# };
|
|
|
|
|
2018-08-07 12:48:28 +00:00
|
|
|
system.stateVersion = "18.03";
|
2018-05-21 12:33:01 +00:00
|
|
|
|
2015-05-21 13:27:06 +00:00
|
|
|
}
|