2023-08-19 16:58:57 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
# [HARDWARE]
|
|
|
|
imports =
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# [BOOT]
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2023-12-01 17:00:30 +01:00
|
|
|
boot.swraid.enable = true;
|
2023-12-01 19:14:46 +01:00
|
|
|
boot.swraid.mdadmConf = ''
|
|
|
|
ARRAY /dev/md/deppyPC:0 level=raid0 num-devices=2 metadata=1.2 name=deppyPC:0 UUID=ba6fef6e:972796a3:a331c87a:2d973f91
|
|
|
|
devices=/dev/sda1,/dev/sdb1
|
|
|
|
'';
|
2023-08-19 16:58:57 +02:00
|
|
|
|
2023-12-29 17:26:46 +01:00
|
|
|
# [AUDIO]
|
2024-06-04 14:23:11 +02:00
|
|
|
services.pipewire.wireplumber.extraConfig = {
|
|
|
|
"alsa-monitor.conf" = {
|
|
|
|
enabled = true;
|
2023-12-29 17:26:46 +01:00
|
|
|
|
2024-06-04 14:23:11 +02:00
|
|
|
rules = [
|
|
|
|
{
|
|
|
|
matches = [
|
|
|
|
{
|
|
|
|
"node.name" = "alsa_output.usb-SMSL_SMSL_USB_AUDIO-00.analog-stereo";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
actions = {
|
|
|
|
update-props = {
|
|
|
|
audio.format = "S32_LE";
|
|
|
|
};
|
|
|
|
};
|
2023-12-29 17:26:46 +01:00
|
|
|
}
|
2024-06-04 14:23:11 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2023-12-29 17:26:46 +01:00
|
|
|
|
2024-06-04 14:23:11 +02:00
|
|
|
services.pipewire.extraConfig.pipewire = {
|
|
|
|
"10-clock-rate" = {
|
|
|
|
"context.properties" = {
|
|
|
|
"default.clock.allowed-rates" = [ 44100 48000 88200 96000 176400 192000 352800 384000 705600 768000 ];
|
|
|
|
"default.clock.quantum" = 1024;
|
|
|
|
"default.clock.min-quantum" = 128;
|
|
|
|
"default.clock.max-quantum" = 2048;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
"11-upmix" = {
|
|
|
|
"stream.properties" = {
|
|
|
|
"channel.upmix" = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-12-29 17:26:46 +01:00
|
|
|
|
|
|
|
|
2023-08-19 16:58:57 +02:00
|
|
|
# [NETWORKING]
|
|
|
|
networking.hostName = "computational";
|
2023-11-18 11:29:47 +01:00
|
|
|
networking.networkmanager.enable = true;
|
2023-08-19 16:58:57 +02:00
|
|
|
|
2024-06-04 00:26:34 +02:00
|
|
|
system.stateVersion = "24.05";
|
2023-08-19 16:58:57 +02:00
|
|
|
}
|