nixos-config/computational/configuration.nix

53 lines
1.2 KiB
Nix
Raw Normal View History

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]
environment.etc."pipewire/media-session.d/alsa-monitor.con".text = ''
enabled = true
rules = {
{
matches = [
{
node.name = "alsa_output.usb-SMSL_SMSL_USB_AUDIO-00.analog-stereo"
}
]
actions = {
update-props = {
audio.format = "S32_LE"
}
}
},
}
'';
environment.etc."pipewire/pipewire.conf".text = builtins.readFile ./pipewire.conf;
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
2023-12-01 17:00:30 +01:00
system.stateVersion = "23.11";
2023-08-19 16:58:57 +02:00
}