dotfiles.nix/nixos/fuchsia/configuration.nix

67 lines
1.4 KiB
Nix
Raw Normal View History

2024-01-21 21:03:57 +08:00
{ pkgs, ... }:
2023-04-03 22:41:22 +08:00
2024-01-14 06:29:18 +08:00
{
2023-04-03 22:41:22 +08:00
imports = [
2024-01-14 06:29:18 +08:00
../common/global
2024-01-14 06:29:18 +08:00
../common/users/sajenim
2024-06-03 21:10:23 +08:00
../common/users/sajenim/samba
2024-06-03 20:58:34 +08:00
../common/users/sajenim/steam
2024-01-21 21:03:57 +08:00
../common/optional/key.nix
2023-04-03 22:41:22 +08:00
2024-07-26 09:13:04 +08:00
./programs
2024-04-01 10:04:53 +08:00
./services
2023-04-03 22:41:22 +08:00
./hardware-configuration.nix
];
2024-07-26 09:17:23 +08:00
/* Boot configuration */
2023-04-07 06:51:34 +08:00
boot = {
kernelPackages = pkgs.linuxPackages_latest;
2024-01-14 06:29:18 +08:00
kernelParams = [
# Enable amdgpu driver sysfs API that allows fine grain control of GPU
"amdgpu.ppfeaturemask=0xffffffff"
];
2023-04-07 06:51:34 +08:00
kernelModules = [ "i2c-dev" "i2c-piix4" ];
initrd.kernelModules = [ "amdgpu" ];
};
2024-07-26 09:17:23 +08:00
/* Hardware configuration */
2023-04-07 06:51:34 +08:00
hardware = {
2024-01-01 07:18:03 +08:00
bluetooth = {
enable = true;
powerOnBoot = true;
};
2023-04-07 06:51:34 +08:00
pulseaudio = {
enable = true;
2024-01-14 06:29:18 +08:00
support32Bit = true;
2024-02-13 22:58:20 +08:00
extraConfig = "load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1";
2023-04-07 06:51:34 +08:00
};
opengl = {
enable = true;
# Vulkan
driSupport = true;
driSupport32Bit = true;
# OpenCL
extraPackages = with pkgs; [
2024-05-07 20:42:35 +08:00
rocmPackages.clr.icd
2023-04-07 06:51:34 +08:00
];
};
};
2024-07-26 09:17:23 +08:00
/* Networking configuration */
2023-04-07 06:51:34 +08:00
networking = {
hostName = "fuchsia";
networkmanager.enable = true;
};
2023-04-03 22:41:22 +08:00
2024-05-07 20:42:56 +08:00
# Use docker instead of podman for our containers.
2023-04-07 06:51:34 +08:00
virtualisation.docker = {
2023-04-03 22:41:22 +08:00
enable = true;
2023-04-07 06:51:34 +08:00
liveRestore = false;
};
2023-04-03 22:41:22 +08:00
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
2024-07-08 22:00:24 +08:00
system.stateVersion = "24.05";
2023-04-03 22:41:22 +08:00
}