2021-04-02 12:13:27 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./common-headless.nix
|
|
|
|
# ./sway.nix
|
|
|
|
./i3.nix
|
|
|
|
./large-sw.nix
|
|
|
|
./uefi.nix
|
|
|
|
./fstrim.nix
|
|
|
|
# ./qemu-user.nix
|
|
|
|
./atmega.nix
|
|
|
|
./v4l2loopback.nix
|
|
|
|
./huion.nix
|
|
|
|
# ./unstable-nix.nix
|
2021-05-22 13:14:01 +00:00
|
|
|
./spacenav.nix
|
2021-04-02 12:13:27 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
environment.etc."lvm/lvm.conf".text = ''
|
|
|
|
devices {
|
|
|
|
issue_discards = 1
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
boot.initrd.luks.devices = {
|
|
|
|
nvme0n1p2_crypt = {
|
|
|
|
device = "/dev/disk/by-uuid/0fd33358-83dc-4acd-b6b8-0f079082367e";
|
|
|
|
preLVM = true;
|
|
|
|
allowDiscards = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.hostName = "flammea"; # Define your hostname.
|
|
|
|
networking.hostId = "390adc00";
|
|
|
|
|
2021-04-02 17:22:49 +00:00
|
|
|
hardware.cpu.amd.updateMicrocode = true;
|
2021-04-02 12:13:27 +00:00
|
|
|
|
|
|
|
services.wakeonlan.interfaces = [
|
|
|
|
{
|
|
|
|
interface = "enp42s0";
|
|
|
|
method = "magicpacket";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
# };
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
beets
|
|
|
|
piper
|
2021-04-03 09:59:52 +00:00
|
|
|
ddcutil
|
2021-04-07 20:03:20 +00:00
|
|
|
ddcui
|
2021-04-02 12:13:27 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
services.thermald.enable = true;
|
|
|
|
|
|
|
|
virtualisation.virtualbox.host = {
|
|
|
|
enable = true;
|
|
|
|
# enableExtensionPack = true;
|
|
|
|
};
|
|
|
|
# nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
# virtualisation.libvirtd = {
|
|
|
|
# enable = true;
|
|
|
|
# };
|
|
|
|
# networking.firewall.checkReversePath = false;
|
|
|
|
# fileSystems."/var/lib/libvirt/images/vaccaria" = {
|
|
|
|
# device = "//vaccaria.htdf.gebner.org/export/tmp/vms";
|
|
|
|
# fsType = "cifs";
|
|
|
|
# options = [ "noauto" "x-systemd.automount" "credentials=/etc/smbcredentials/vaccaria"
|
|
|
|
# "forceuid" "forcegid" "uid=0" "gid=0" ];
|
|
|
|
# };
|
|
|
|
|
|
|
|
hardware.opengl.extraPackages = with pkgs; [
|
|
|
|
rocm-opencl-icd
|
|
|
|
# rocm-runtime-ext
|
|
|
|
];
|
|
|
|
|
|
|
|
# services.nix-serve = {
|
|
|
|
# enable = true;
|
|
|
|
# secretKeyFile = "/etc/nix-serve/secret.key";
|
|
|
|
# };
|
|
|
|
# networking.firewall.allowedTCPPorts = [ config.services.nix-serve.port ];
|
|
|
|
|
|
|
|
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
|
|
|
|
# );
|
|
|
|
# };
|
|
|
|
|
|
|
|
#boot.kernelPackages = pkgs.lib.mkOverride 10 pkgs.linuxPackages_latest;
|
|
|
|
# boot.kernelPackages = pkgs.lib.mkOverride 10 pkgs.linuxPackages;
|
|
|
|
# boot.kernelPackages = pkgs.lib.mkOverride 10 pkgs.linuxPackages_5_8;
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
videoDrivers = [ "amdgpu" ];
|
|
|
|
deviceSection = ''
|
|
|
|
Option "TearFree" "on"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
services.ratbagd.enable = true;
|
|
|
|
|
|
|
|
# virtualisation.anbox = {
|
|
|
|
# enable = true;
|
|
|
|
# };
|
|
|
|
|
2021-04-03 09:59:52 +00:00
|
|
|
services.udev.extraRules = ''
|
|
|
|
# allow admin use of i2c devices
|
|
|
|
ACTION=="add", KERNEL=="i2c-[0-9]*", GROUP="wheel", MODE="666"
|
|
|
|
'';
|
|
|
|
|
|
|
|
boot.kernelModules = [ "zenpower" ];
|
|
|
|
|
2021-04-02 12:13:27 +00:00
|
|
|
system.stateVersion = "21.05";
|
|
|
|
|
|
|
|
}
|